next-template/next.config.js

33 lines
638 B
JavaScript

const config = require('config')
const constants = config.get('constants')
/** @type {import('next').NextConfig} */
const rewrites = async () => {
return [
{
source: '/orbisapi/:path*',
destination: 'http://localhost:9000/:path*' // Proxy to Backend
}
]
}
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,
reactStrictMode: true,
swcMinify: true
}
module.exports = nextConfig