link-stack/apps/link/next.config.js

33 lines
861 B
JavaScript
Raw Normal View History

/** @type {import('next').NextConfig} */
const nextConfig = {
2023-05-24 20:27:57 +00:00
reactStrictMode: true,
2023-06-26 10:07:12 +00:00
modularizeImports: {
"@mui/material": {
transform: "@mui/material/{{member}}",
},
"@mui/icons-material": {
transform: "@mui/icons-material/{{member}}",
},
},
2023-05-25 12:37:14 +00:00
publicRuntimeConfig: {
2023-06-20 07:59:13 +00:00
linkURL: process.env.LINK_URL ?? "http://localhost:3000",
2023-07-21 12:26:02 +00:00
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",
2023-06-20 07:59:13 +00:00
muiLicenseKey: process.env.MUI_LICENSE_KEY ?? "",
2023-05-25 12:37:14 +00:00
},
2023-06-05 14:48:23 +00:00
async rewrites() {
return {
fallback: [
{
2023-06-07 08:02:29 +00:00
source: "/:path*",
2023-06-05 14:48:23 +00:00
destination: `/proxy/zammad/:path*`,
},
],
2023-06-07 08:02:29 +00:00
};
},
2022-12-02 10:55:56 +00:00
};
module.exports = nextConfig;