link-stack/apps/link/next.config.js
Darren Clarke f901f203b0 Develop
2023-07-18 12:26:57 +00:00

30 lines
770 B
JavaScript

/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
modularizeImports: {
"@mui/material": {
transform: "@mui/material/{{member}}",
},
"@mui/icons-material": {
transform: "@mui/icons-material/{{member}}",
},
},
publicRuntimeConfig: {
linkURL: process.env.LINK_URL ?? "http://localhost:3000",
leafcutterURL: process.env.LEAFCUTTER_URL ?? "http://localhost:3001",
metamigoURL: process.env.METAMIGO_URL ?? "http://localhost:3002",
muiLicenseKey: process.env.MUI_LICENSE_KEY ?? "",
},
async rewrites() {
return {
fallback: [
{
source: "/:path*",
destination: `/proxy/zammad/:path*`,
},
],
};
},
};
module.exports = nextConfig;