Evo.External.App/apps/web/next.config.js
2023-11-08 16:41:28 +03:00

21 lines
447 B
JavaScript

const envSchema = require('./config/schema/env');
const urls = require('./constants/urls');
const env = envSchema.parse(process.env);
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
transpilePackages: ['ui'],
async rewrites() {
return [
{
destination: env.URL_IUS_DIRECT + '/:path',
source: urls.URL_IUS_PROXY + '/:path',
},
];
},
};
module.exports = nextConfig;