build for static

This commit is contained in:
core 2023-07-01 15:47:02 -04:00
parent d38cd0db4f
commit c7729358d3
Signed by: core
GPG Key ID: FDBF740DADDCEECF
4 changed files with 8 additions and 1 deletions

View File

@ -14,6 +14,7 @@
"devDependencies": {
"@sveltejs/adapter-auto": "^2.0.0",
"@sveltejs/adapter-cloudflare": "^2.3.0",
"@sveltejs/adapter-static": "^2.0.2",
"@sveltejs/kit": "^1.5.0",
"@types/prismjs": "^1.26.0",
"@typescript-eslint/eslint-plugin": "^5.45.0",

1
src/routes/+layout.ts Normal file
View File

@ -0,0 +1 @@
export const prerender = true;

View File

@ -1,4 +1,4 @@
import adapter from '@sveltejs/adapter-auto';
import adapter from '@sveltejs/adapter-static';
import { vitePreprocess } from '@sveltejs/kit/vite';
import {mdsvex} from "mdsvex";

View File

@ -233,6 +233,11 @@
esbuild "^0.17.18"
worktop "0.8.0-next.15"
"@sveltejs/adapter-static@^2.0.2":
version "2.0.2"
resolved "https://registry.yarnpkg.com/@sveltejs/adapter-static/-/adapter-static-2.0.2.tgz#49afd27787fb73d789017d002a91031088494139"
integrity sha512-9wYtf6s6ew7DHUHMrt55YpD1FgV7oWql2IGsW5BXquLxqcY9vjrqCFo0TzzDpo+ZPZkW/v77k0eOP6tsAb8HmQ==
"@sveltejs/kit@^1.5.0":
version "1.20.0"
resolved "https://registry.yarnpkg.com/@sveltejs/kit/-/kit-1.20.0.tgz#5deed969badda2cd9d4c68c580362c492425be75"