next-template/next.config.js

33 lines
638 B
JavaScript
Raw Permalink Normal View History

const config = require('config')
const constants = config.get('constants')
2023-12-21 09:05:21 -06:00
/** @type {import('next').NextConfig} */
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 = {
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,
swcMinify: true
2023-12-21 09:05:21 -06:00
}
module.exports = nextConfig