Skip to content

Commit 5d59a38

Browse files
committed
Fix build
1 parent 07ed8ab commit 5d59a38

File tree

4 files changed

+12
-2
lines changed

4 files changed

+12
-2
lines changed

website/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
},
2727
"packageManager": "[email protected]+sha1.4ba7fc5c6e704fce2066ecbfb0b0d8976fe62447",
2828
"dependencies": {
29+
"@sveltejs/adapter-static": "^3.0.6",
2930
"d3": "^7.9.0",
3031
"intersection-observer": "^0.12.2",
3132
"scrollama": "^3.2.0",

website/src/routes/+layout.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export const prerender = true;

website/svelte.config.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { mdsvex } from "mdsvex";
2-
import adapter from '@sveltejs/adapter-auto';
2+
import adapter from '@sveltejs/adapter-static';
33
import { sveltePreprocess } from 'svelte-preprocess';
44

55

@@ -9,7 +9,10 @@ const config = {
99
// adapter-auto only supports some environments, see https://svelte.dev/docs/kit/adapter-auto for a list.
1010
// If your environment is not supported, or you settled on a specific environment, switch out the adapter.
1111
// See https://svelte.dev/docs/kit/adapters for more information about adapters.
12-
adapter: adapter()
12+
adapter: adapter({
13+
pages: 'build',
14+
assets: 'build',
15+
})
1316
},
1417

1518
preprocess: [sveltePreprocess(), mdsvex()],

website/yarn.lock

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,11 @@
345345
dependencies:
346346
import-meta-resolve "^4.1.0"
347347

348+
"@sveltejs/adapter-static@^3.0.6":
349+
version "3.0.6"
350+
resolved "https://registry.yarnpkg.com/@sveltejs/adapter-static/-/adapter-static-3.0.6.tgz#a580ad86aa90a52b19b6440f3c9521bd731211c1"
351+
integrity sha512-MGJcesnJWj7FxDcB/GbrdYD3q24Uk0PIL4QIX149ku+hlJuj//nxUbb0HxUTpjkecWfHjVveSUnUaQWnPRXlpg==
352+
348353
"@sveltejs/kit@^2.0.0":
349354
version "2.8.1"
350355
resolved "https://registry.yarnpkg.com/@sveltejs/kit/-/kit-2.8.1.tgz#f6d244d60217b44741c88e6ba099374d2cda9469"

0 commit comments

Comments
 (0)