next-app-template/next.config.mjs

37 lines
681 B
JavaScript
Raw Permalink Normal View History

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} */
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;