2023-12-26 15:10:21 -06:00
|
|
|
const config = require('config')
|
|
|
|
const constants = config.get('constants')
|
|
|
|
|
2023-12-21 09:05:21 -06:00
|
|
|
/** @type {import('next').NextConfig} */
|
2023-12-26 15:10:21 -06:00
|
|
|
const rewrites = async () => {
|
|
|
|
return [
|
|
|
|
{
|
|
|
|
source: '/orbisapi/:path*',
|
|
|
|
destination: 'http://localhost:9000/:path*' // Proxy to Backend
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
2023-12-21 09:05:21 -06:00
|
|
|
const nextConfig = {
|
2023-12-26 15:10:21 -06:00
|
|
|
env: {
|
|
|
|
...constants
|
|
|
|
},
|
|
|
|
images: {
|
|
|
|
domains: ['www.via-asesores.com', 'gt.via-asesores.com'],
|
|
|
|
unoptimized: true
|
|
|
|
},
|
|
|
|
assetPrefix: constants.publicPath,
|
|
|
|
basePath: constants.publicPath,
|
|
|
|
compiler: {
|
|
|
|
styledComponents: true
|
|
|
|
},
|
|
|
|
rewrites,
|
2023-12-21 09:05:21 -06:00
|
|
|
reactStrictMode: true,
|
2023-12-26 15:10:21 -06:00
|
|
|
swcMinify: true
|
2023-12-21 09:05:21 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
module.exports = nextConfig
|