starfish_data_ai / web /next.config.js
John-Jiang's picture
init commit
5301c48
/** @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