Skip to content

Instantly share code, notes, and snippets.

@ostermanj
Created August 31, 2022 00:12
Show Gist options
  • Save ostermanj/aaeb966d4de44eb2a0d9e96c27987ce5 to your computer and use it in GitHub Desktop.
Save ostermanj/aaeb966d4de44eb2a0d9e96c27987ce5 to your computer and use it in GitHub Desktop.
Importing private environment variables into SvelteKit
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