We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 03deb85 commit 9dfc185Copy full SHA for 9dfc185
.github/workflows/deploy.yml
@@ -48,9 +48,9 @@ jobs:
48
static_site_generator: sveltekit
49
50
- name: Build
51
- run: pnpm run build
52
- env: # Or as an environment variable
+ env:
53
GOOGLE_FONTS_API_KEY: ${{ secrets.GOOGLE_FONTS_API_KEY }}
+ run: pnpm run build
54
55
- name: Upload Artifacts
56
uses: actions/upload-pages-artifact@v1
src/routes/+page.server.ts
@@ -1,4 +1,4 @@
1
-import { env } from '$env/dynamic/private'
+import { GOOGLE_FONTS_API_KEY } from '$env/static/private'
2
import { createServerLoad } from 'svelte-font-select'
3
4
-export const load = createServerLoad(env.GOOGLE_FONTS_API_KEY)
+export const load = createServerLoad(GOOGLE_FONTS_API_KEY)
0 commit comments