Fixed and changes
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user