Spaces:
Running
Running
File size: 625 Bytes
5301c48 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
/** @type {import('next').NextConfig} */
const path = require('path')
const nextConfig = {
output: 'standalone',
experimental: {
outputFileTracingRoot: path.join(__dirname, './'),
},
webpack: (config, { buildId, dev, isServer, defaultLoaders, webpack }) => {
// Fix path aliases for Docker builds
config.resolve.alias = {
...config.resolve.alias,
'@': path.resolve(__dirname),
'@/lib': path.resolve(__dirname, 'lib'),
'@/components': path.resolve(__dirname, 'components'),
'@/src': path.resolve(__dirname, 'src'),
}
return config
},
}
module.exports = nextConfig |