Skip to content

Commit 485d282

Browse files
committed
chore: upgrade svelte kit and migration work
1 parent 7ef55b8 commit 485d282

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

docs-svelte-kit/src/routes/+layout.js

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import { markdownPath } from "$lib/utils.js"
22
const docs = import.meta.glob("../../../docs/**/*.md")
33

4+
export const prerender = true
5+
46
/** @type {import('@sveltejs/kit').Load} */
57
export async function load({ url }) {
68
const markdown = `../../../docs/${markdownPath(url.pathname)}`

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@
9090
"@fontsource/fira-mono": "^4.5.0",
9191
"@ota-meshi/eslint-plugin": "^0.12.0",
9292
"@sindresorhus/slugify": "^2.1.0",
93-
"@sveltejs/adapter-static": "^1.0.0-next.26",
94-
"@sveltejs/kit": "^1.0.0-next.406",
93+
"@sveltejs/adapter-static": "^1.0.0-next.40",
94+
"@sveltejs/kit": "^1.0.0-next.456",
9595
"@types/babel__core": "^7.1.19",
9696
"@types/cross-spawn": "^6.0.2",
9797
"@types/escape-html": "^1.0.2",

svelte.config.mjs

+1-4
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,9 @@ const config = {
3737
pages: outDir,
3838
assets: outDir,
3939
}),
40-
prerender: {
41-
default: true,
42-
},
4340
files: {
4441
routes: path.join(dirname, "./docs-svelte-kit/src/routes"),
45-
template: path.join(dirname, "./docs-svelte-kit/src/app.html"),
42+
appTemplate: path.join(dirname, "./docs-svelte-kit/src/app.html"),
4643
hooks: path.join(dirname, "./docs-svelte-kit/src/hooks"),
4744
lib: path.join(dirname, "./docs-svelte-kit/src/lib"),
4845
assets: path.join(dirname, "./docs-svelte-kit/statics"),

0 commit comments

Comments
 (0)