Skip to content

Commit 385342b

Browse files
try static data
1 parent 7a988a2 commit 385342b

File tree

2 files changed

+8034
-3
lines changed

2 files changed

+8034
-3
lines changed

src/routes/+page.server.ts

+9-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
import { GOOGLE_FONTS_API_KEY } from '$env/static/private'
2-
import { createServerLoad } from 'svelte-font-select'
1+
// import { GOOGLE_FONTS_API_KEY } from '$env/static/private'
2+
// import { createServerLoad } from 'svelte-font-select'
33

4-
export const load = createServerLoad(GOOGLE_FONTS_API_KEY)
4+
// export const load = createServerLoad(GOOGLE_FONTS_API_KEY)
5+
6+
import data from '../../static/fonts.json'
7+
8+
export async function load({ fetch }) {
9+
return data
10+
}

0 commit comments

Comments
 (0)