link-stack/apps/link/next.config.js
2024-02-14 12:13:00 +01:00

36 lines
974 B
JavaScript

/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
experimental: {
missingSuspenseWithCSRBailout: false,
},
modularizeImports: {
"@mui/material": {
transform: "@mui/material/{{member}}",
},
"@mui/icons-material": {
transform: "@mui/icons-material/{{member}}",
},
},
transpilePackages: ["leafcutter-common"],
publicRuntimeConfig: {
linkURL: process.env.LINK_URL ?? "http://localhost:3000",
leafcutterURL:
process.env.LEAFCUTTER_URL ?? "https://lc.digiresilience.org",
metamigoURL: process.env.METAMIGO_URL ?? "http://localhost:8002",
labelStudioURL: process.env.LABEL_STUDIO_URL ?? "http://localhost:8006",
muiLicenseKey: process.env.MUI_LICENSE_KEY ?? "",
},
async rewrites() {
return {
fallback: [
{
source: "/:path*",
destination: `/proxy/leafcutter/:path*`,
},
],
};
},
};
module.exports = nextConfig;