33 lines
890 B
JavaScript
33 lines
890 B
JavaScript
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
transpilePackages: [
|
|
"@link-stack/leafcutter-ui",
|
|
"@link-stack/opensearch-common",
|
|
"@link-stack/ui",
|
|
"@link-stack/bridge-common",
|
|
"@link-stack/bridge-ui",
|
|
"mui-chips-input",
|
|
],
|
|
publicRuntimeConfig: {
|
|
linkURL: process.env.LINK_URL ?? "http://localhost:3000",
|
|
bridgeURL: process.env.BRIDGE_URL ?? "http://localhost:8002",
|
|
labelStudioURL: process.env.LABEL_STUDIO_URL ?? "http://localhost:8006",
|
|
muiLicenseKey: process.env.MUI_LICENSE_KEY ?? "",
|
|
},
|
|
rewrites: async () => {
|
|
return {
|
|
beforeFiles: [
|
|
{
|
|
source: "/api/v1/:path*",
|
|
destination: `http://zammad-nginx:8080/api/v1/:path*`,
|
|
},
|
|
{
|
|
source: "/ws",
|
|
destination: `http://zammad-nginx:8080/ws`,
|
|
},
|
|
],
|
|
};
|
|
},
|
|
};
|
|
|
|
export default nextConfig;
|