Created
August 31, 2022 00:12
-
-
Save ostermanj/aaeb966d4de44eb2a0d9e96c27987ce5 to your computer and use it in GitHub Desktop.
Importing private environment variables into SvelteKit
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
import { initContentful, getPageContent, getEntry } from '$utils/contentful'; | |
import { C_SPACE, C_TOKEN } from "$env/static/private"; | |
initContentful(C_SPACE, C_TOKEN); | |
[...] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment