-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
implement handling webpostlight root in navigation
- Loading branch information
Ondřej Chrastina
committed
Jul 19, 2023
1 parent
79df9e9
commit 9af29f6
Showing
4 changed files
with
36 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
APP_VERSION=$npm_package_version | ||
APP_NAME=$npm_package_name | ||
NEXT_PUBLIC_KONTENT_ENVIRONMENT_ID=2cedc519-a547-01ba-dde7-b01e00b909a1 | ||
KONTENT_COLLECTION_CODENAME=ficto_healthtech_surgical | ||
NEXT_PUBLIC_KONTENT_COLLECTION_CODENAME=ficto_healthtech_surgical | ||
# Collection in format <COLLECTION_CODENAME>:<DOMAIN_WITOUHOUT_PROTOCOL> i.e. "ficto_healthtech:ficto-healthtech.vercel.app,ficto_healthtech_imaging:ficto-healthtech-imaging.vercel.app,ficto_healthtech_surgical:ficto-healthtech-surgical.vercel.app | ||
NEXT_PUBLIC_COLLECTION_DOMAINS= | ||
KONTENT_PREVIEW_API_KEY= | ||
KONTENT_MANAGEMENT_API_KEY= | ||
|
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,10 +1,10 @@ | ||
import { isValidCollectionCodename } from "../types/perCollection"; | ||
|
||
const { KONTENT_COLLECTION_CODENAME } = process.env; | ||
const { NEXT_PUBLIC_KONTENT_COLLECTION_CODENAME } = process.env; | ||
|
||
if (!isValidCollectionCodename(KONTENT_COLLECTION_CODENAME)) { | ||
throw new Error(`Invalid collection codename "${KONTENT_COLLECTION_CODENAME}".`); | ||
if (!isValidCollectionCodename(NEXT_PUBLIC_KONTENT_COLLECTION_CODENAME)) { | ||
throw new Error(`Invalid collection codename "${NEXT_PUBLIC_KONTENT_COLLECTION_CODENAME}".`); | ||
} | ||
|
||
/** Use only on server - for client use `useSiteCodename` hook */ | ||
export const siteCodename = KONTENT_COLLECTION_CODENAME; | ||
export const siteCodename = NEXT_PUBLIC_KONTENT_COLLECTION_CODENAME; |