Showing
5 changed files
with
6 additions
and
3 deletions
1 | apiVersion: v1 | 1 | apiVersion: v1 |
2 | kind: Service | 2 | kind: Service |
3 | metadata: | 3 | metadata: |
4 | + labels: | ||
5 | + app: backend | ||
4 | name: backend | 6 | name: backend |
5 | spec: | 7 | spec: |
6 | type: ClusterIP | 8 | type: ClusterIP |
... | @@ -8,4 +10,5 @@ spec: | ... | @@ -8,4 +10,5 @@ spec: |
8 | - port: 5000 | 10 | - port: 5000 |
9 | targetPort: 5000 | 11 | targetPort: 5000 |
10 | selector: | 12 | selector: |
13 | + name: backend | ||
11 | app: backend | 14 | app: backend |
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
... | @@ -11,7 +11,7 @@ function createApolloClient() { | ... | @@ -11,7 +11,7 @@ function createApolloClient() { |
11 | return new ApolloClient({ | 11 | return new ApolloClient({ |
12 | ssrMode: typeof window === "undefined", | 12 | ssrMode: typeof window === "undefined", |
13 | link: new HttpLink({ | 13 | link: new HttpLink({ |
14 | - uri: "http://backend:5000/graphql", // Server URL (must be absolute) | 14 | + uri: "http://localhost:5000/graphql", // Server URL (must be absolute) |
15 | credentials: "same-origin", // Additional fetch() options like `credentials` or `headers` | 15 | credentials: "same-origin", // Additional fetch() options like `credentials` or `headers` |
16 | }), | 16 | }), |
17 | cache: new InMemoryCache({ | 17 | cache: new InMemoryCache({ | ... | ... |
-
Please register or login to post a comment