Skip to content

Instantly share code, notes, and snippets.

Created August 31, 2022 00:12
What would you like to do?
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