Skip to content

Commit

Permalink
fix: resolve cors issue
Browse files Browse the repository at this point in the history
Reference-to: #49, #51
Signed-off-by: Prince Muel <[email protected]>
  • Loading branch information
princemuel committed May 11, 2023
1 parent d881d7a commit b35fd35
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/client/graphql.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { GraphQLClient } from 'graphql-request';
import { constants } from '../helpers';

const endpoint = `${constants.BASE_URL}/api/graphql`; // process?.env?.NEXT_PUBLIC_GRAPHQL_ENDPOINT ??
const endpoint = `${constants.BASE_URL}api/graphql`; // process?.env?.NEXT_PUBLIC_GRAPHQL_ENDPOINT ??

export const client = new GraphQLClient(endpoint, {
credentials: 'include',
Expand Down
2 changes: 2 additions & 0 deletions src/lib/helpers/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,5 @@ export const constants = {

BASE_URL_PROD: 'https://invoicemail.vercel.app',
};

console.log(constants.BASE_URL);

0 comments on commit b35fd35

Please sign in to comment.