File tree Expand file tree Collapse file tree 4 files changed +1486
-1195
lines changed
Expand file tree Collapse file tree 4 files changed +1486
-1195
lines changed Original file line number Diff line number Diff line change @@ -5,4 +5,7 @@ fileignoreconfig:
55 - filename: package-lock.json
66 ignore_detectors:
77 - filecontent
8+ - filename: codegen.ts
9+ ignore_detectors:
10+ - filecontent
811version: "1.0"
Original file line number Diff line number Diff line change @@ -2,11 +2,11 @@ import { CodegenConfig } from '@graphql-codegen/cli';
22import * as dotenv from 'dotenv' ;
33
44dotenv . config ( ) ;
5- const apiKey = process . env . NEXT_PUBLIC_CONTENTSTACK_API_KEY ;
6- const environment = process . env . NEXT_PUBLIC_CONTENTSTACK_ENVIRONMENT ;
7- const region = process . env . NEXT_PUBLIC_CONTENTSTACK_REGION
5+ const apiKey = process . env . NEXT_PUBLIC_CONTENTSTACK_API_KEY ! ;
6+ const environment = process . env . NEXT_PUBLIC_CONTENTSTACK_ENVIRONMENT ! ;
7+ const region = process . env . NEXT_PUBLIC_CONTENTSTACK_REGION ! ;
88const baseURL = region === 'EU' ? 'eu-graphql.contentstack.com' : 'graphql.contentstack.com'
9- const accessToken = process . env . NEXT_PUBLIC_CONTENTSTACK_DELIVERY_TOKEN
9+ const accessToken = process . env . NEXT_PUBLIC_CONTENTSTACK_DELIVERY_TOKEN ! ;
1010
1111const config : CodegenConfig = {
1212 schema : {
You can’t perform that action at this time.
0 commit comments