Files
Admin_dash/next.config.mjs

25 lines
716 B
JavaScript
Raw Normal View History

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/**/*'],
'/api/visitors': ['./node_modules/geoip-lite/data/**/*'],
2026-02-08 03:03:53 -05:00
},
},
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;