File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11// This is client side config only - don't put anything in here that shouldn't be public!
22export const endpoint = `http://localhost:4444` ;
3+ export const prodEndpoint = `https://sick-ckw-prod.herokuapp.com/` ;
34export const perPage = 4 ;
Original file line number Diff line number Diff line change 11import withApollo from 'next-with-apollo' ;
22import ApolloClient from 'apollo-boost' ;
3- import { endpoint } from '../config' ;
3+ import { endpoint , prodEndpoint } from '../config' ;
44import { LOCAL_STATE_QUERY } from '../components/Cart' ;
55
66function createClient ( { headers } ) {
77 return new ApolloClient ( {
8- uri : process . env . NODE_ENV === 'development' ? endpoint : endpoint ,
8+ uri : process . env . NODE_ENV === 'development' ? endpoint : prodEndpoint ,
99 request : operation => {
1010 operation . setContext ( {
1111 fetchOptions : {
You can’t perform that action at this time.
0 commit comments