-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Amitkanswal <[email protected]>
- Loading branch information
1 parent
cfbee72
commit c416015
Showing
7 changed files
with
256 additions
and
257 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
timeout=60000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,27 @@ | ||
const withPWA = require('next-pwa')({ | ||
dest: 'public' | ||
const withPWA = require("next-pwa")({ | ||
dest: "public", | ||
}); | ||
|
||
const config = { | ||
publicRuntimeConfig: { | ||
// Will be available on both server and client | ||
CONTENTSTACK_API_KEY: process.env.CONTENTSTACK_API_KEY, | ||
CONTENTSTACK_DELIVERY_TOKEN: process.env.CONTENTSTACK_DELIVERY_TOKEN, | ||
CONTENTSTACK_BRANCH: process.env.CONTENTSTACK_BRANCH || 'main', | ||
CONTENTSTACK_REGION:process.env.CONTENTSTACK_REGION || "us", | ||
CONTENTSTACK_BRANCH: process.env.CONTENTSTACK_BRANCH || "main", | ||
CONTENTSTACK_REGION: process.env.CONTENTSTACK_REGION || "us", | ||
CONTENTSTACK_ENVIRONMENT: process.env.CONTENTSTACK_ENVIRONMENT, | ||
CONTENTSTACK_MANAGEMENT_TOKEN: process.env.CONTENTSTACK_MANAGEMENT_TOKEN, | ||
CONTENTSTACK_PREVIEW_TOKEN: process.env.CONTENTSTACK_PREVIEW_TOKEN, | ||
CONTENTSTACK_PREVIEW_HOST: | ||
process.env.CONTENTSTACK_PREVIEW_HOST || "rest-preview.contentstack.com", | ||
CONTENTSTACK_API_HOST: | ||
process.env.CONTENTSTACK_API_HOST || 'api.contentstack.io', | ||
process.env.CONTENTSTACK_API_HOST || "api.contentstack.io", | ||
CONTENTSTACK_APP_HOST: | ||
process.env.CONTENTSTACK_APP_HOST || 'app.contentstack.com', | ||
CONTENTSTACK_LIVE_PREVIEW: | ||
process.env.CONTENTSTACK_LIVE_PREVIEW || 'true', | ||
process.env.CONTENTSTACK_APP_HOST || "app.contentstack.com", | ||
CONTENTSTACK_LIVE_PREVIEW: process.env.CONTENTSTACK_LIVE_PREVIEW || "true", | ||
CONTENTSTACK_LIVE_EDIT_TAGS: | ||
process.env.CONTENTSTACK_LIVE_EDIT_TAGS || 'false', | ||
process.env.CONTENTSTACK_LIVE_EDIT_TAGS || "false", | ||
}, | ||
experimental: { largePageDataBytes: 128 * 100000 }, | ||
}; | ||
module.exports = | ||
process.env.NODE_ENV === 'development' ? config : withPWA(config); | ||
process.env.NODE_ENV === "development" ? config : withPWA(config); |
Oops, something went wrong.