2026-02-08 02:32:45 -05:00
|
|
|
/** @type {import('next').NextConfig} */
|
|
|
|
|
const nextConfig = {
|
|
|
|
|
output: "standalone",
|
2026-02-08 03:03:53 -05:00
|
|
|
externals: {
|
|
|
|
|
'geoip-lite': 'commonjs geoip-lite',
|
|
|
|
|
'sqlite3': 'commonjs sqlite3',
|
|
|
|
|
},
|
|
|
|
|
experimental: {
|
|
|
|
|
// This is needed to copy the geoip-lite data files to the standalone build
|
|
|
|
|
outputFileTracingIncludes: {
|
|
|
|
|
'/api/track': ['./node_modules/geoip-lite/data/**/*'],
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
webpack: (config) => {
|
|
|
|
|
config.externals.push({
|
|
|
|
|
'geoip-lite': 'commonjs geoip-lite',
|
|
|
|
|
'sqlite3': 'commonjs sqlite3',
|
|
|
|
|
});
|
|
|
|
|
return config;
|
|
|
|
|
},
|
2026-02-08 02:32:45 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export default nextConfig;
|