Skip to content

Commit 1ce81ab

Browse files
authored
Merge pull request #21 from code0-tech/19-add-configurable-sagittarius-host
Add configurable sagittarius graphql url
2 parents 2634920 + 5724db0 commit 1ce81ab

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

next.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import type {NextConfig} from "next";
22
import path from "node:path";
33

44
const EDITION = process.env.EDITION ?? "ce";
5+
const SAGITTARIUS_GRAPHQL_URL = process.env.SAGITTARIUS_GRAPHQL_URL ?? 'http://localhost:3001/graphql';
56

67
const cspHeader = `
78
default-src 'self';
@@ -55,7 +56,7 @@ const nextConfig: NextConfig = {
5556
return [
5657
{
5758
source: '/graphql',
58-
destination: 'http://localhost:3001/graphql' // Proxy to Backend
59+
destination: SAGITTARIUS_GRAPHQL_URL // Proxy to Backend
5960
}
6061
];
6162
}

0 commit comments

Comments
 (0)