Skip to content

Commit f1695b1

Browse files
committed
Use envvar on ssr
1 parent 927c837 commit f1695b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/server/serverRender.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ const serverRender = async ({ url, loggedIn, cookie }: SSROption) => {
5151
const client = new ApolloClient({
5252
ssrMode: true,
5353
link: createHttpLink({
54-
uri: 'https://v2dev.velog.io/%3C/span%3Egraphql%3Cspan%20class="x x-first x-last">',
54+
uri: `${process.env.REACT_APP_API_HOST}graphql`,
5555
fetch: fetch as any,
5656
headers: {
5757
cookie,
@@ -66,7 +66,7 @@ const serverRender = async ({ url, loggedIn, cookie }: SSROption) => {
6666
const sheet = new ServerStyleSheet();
6767
const extractor = new ChunkExtractor({
6868
statsFile,
69-
publicPath: 'https://static.velog.io/',
69+
publicPath: process.env.PUBLIC_URL,
7070
});
7171

7272
const helmetContext = {} as FilledContext;

0 commit comments

Comments
 (0)