Skip to content

Commit 0cf89a5

Browse files
committed
Changes GraphQL Host
1 parent 40e390a commit 0cf89a5

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ jobs:
2929
run: npm run build:ci
3030
env:
3131
REACT_APP_API_HOST: 'https://v2.velog.io/'
32+
REACT_APP_GRAPHQL_HOST: 'https://velog.graphcdn.app/'
3233
PUBLIC_URL: 'https://static.velog.io/'
3334
REACT_APP_REDIS_HOST: ${{ secrets.REDIS_HOST }}
3435
CI: false

src/lib/graphql/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { createHttpLink } from 'apollo-link-http';
55
const host =
66
(process.env.NODE_ENV === 'development'
77
? '/'
8-
: process.env.REACT_APP_API_HOST) || '/';
8+
: process.env.REACT_APP_GRAPHQL_HOST) || '/';
99

1010
const graphqlURI = host.concat('graphql');
1111
const link = createHttpLink({

src/server/serverRender.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ const serverRender = async ({ url, loggedIn, cookie }: SSROption) => {
6262
const client = new ApolloClient({
6363
ssrMode: true,
6464
link: createHttpLink({
65-
uri: `${process.env.REACT_APP_API_HOST}graphql`,
65+
uri: `${process.env.REACT_APP_GRAPHQL_HOST}graphql`,
6666
fetch: fetch as any,
6767
headers: {
6868
cookie,

0 commit comments

Comments
 (0)