Files
Admin_dash/next.config.mjs
2026-02-08 03:03:53 -05:00

24 lines
646 B
JavaScript

/** @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;