22 lines
581 B
TypeScript
22 lines
581 B
TypeScript
import type { NextConfig } from 'next';
|
|
|
|
const nextConfig: NextConfig = {
|
|
// ... suas outras configurações (como rewrites)
|
|
allowedDevOrigins: ['portalconsulta.jurunense.com'],
|
|
transpilePackages: ['@mui/material', '@emotion/react', '@emotion/styled'],
|
|
async rewrites() {
|
|
return [
|
|
{
|
|
source: '/api/auth/:path*',
|
|
destination: 'https://api.auth.jurunense.com/api/v1/:path*',
|
|
},
|
|
{
|
|
source: '/api/report-viewer/:path*',
|
|
destination: 'http://10.1.1.205:8068/Viewer/:path*',
|
|
},
|
|
];
|
|
},
|
|
};
|
|
|
|
export default nextConfig;
|