Fixed and changes

This commit is contained in:
Akshay Kolli
2026-02-08 03:03:53 -05:00
parent 3f72118348
commit dd1a2ea200
13 changed files with 1948 additions and 125 deletions

View File

@@ -1,6 +1,23 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
output: "standalone",
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;
},
};
export default nextConfig;