diff --git a/package.json b/package.json index 1b7e5aa..ce68479 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/routes/+layout.ts b/src/routes/+layout.ts new file mode 100644 index 0000000..c8cacf0 --- /dev/null +++ b/src/routes/+layout.ts @@ -0,0 +1 @@ +export const prerender = true; \ No newline at end of file diff --git a/svelte.config.js b/svelte.config.js index db13246..fc888f5 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -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"; diff --git a/yarn.lock b/yarn.lock index 77c2aa6..1ad11f6 100644 --- a/yarn.lock +++ b/yarn.lock @@ -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"