We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2634920 + 5724db0 commit 1ce81abCopy full SHA for 1ce81ab
next.config.ts
@@ -2,6 +2,7 @@ import type {NextConfig} from "next";
2
import path from "node:path";
3
4
const EDITION = process.env.EDITION ?? "ce";
5
+const SAGITTARIUS_GRAPHQL_URL = process.env.SAGITTARIUS_GRAPHQL_URL ?? 'http://localhost:3001/graphql';
6
7
const cspHeader = `
8
default-src 'self';
@@ -55,7 +56,7 @@ const nextConfig: NextConfig = {
55
56
return [
57
{
58
source: '/graphql',
- destination: 'http://localhost:3001/graphql' // Proxy to Backend
59
+ destination: SAGITTARIUS_GRAPHQL_URL // Proxy to Backend
60
}
61
];
62
0 commit comments