2024-04-29 21:32:31 -06:00
|
|
|
import config from "config";
|
|
|
|
|
|
|
|
const constants = config.get('constants')
|
|
|
|
|
|
|
|
const rewrites = async () => {
|
|
|
|
return [
|
|
|
|
{
|
|
|
|
source: "/orbisapi/:path*",
|
|
|
|
destination: "http://localhost:9000/:path*" // Proxy to Backend
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
2024-04-29 14:05:36 -06:00
|
|
|
/** @type {import('next').NextConfig} */
|
2024-04-29 21:32:31 -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,
|
|
|
|
reactStrictMode: true,
|
|
|
|
swcMinify: true,
|
|
|
|
eslint: {
|
|
|
|
ignoreDuringBuilds: true
|
|
|
|
}
|
|
|
|
};
|
2024-04-29 14:05:36 -06:00
|
|
|
|
|
|
|
export default nextConfig;
|