Enable static building

This commit is contained in:
Sage Vaillancourt 2022-09-02 11:41:38 -04:00
parent bb21ff8e9b
commit 691a8a72eb
4 changed files with 8 additions and 18 deletions

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

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

View File

@ -1,6 +1,4 @@
<script> <script>
export const prerender = true
import '../app.css' import '../app.css'
import Header from '$lib/header/Header.svelte' import Header from '$lib/header/Header.svelte'
</script> </script>

View File

@ -1,6 +1,5 @@
<script> <script>
import logo from '$lib/kd-full-logo.png'; import logo from '$lib/kd-full-logo.png';
import Todo from "$lib/Todo.svelte";
const id = 'a59038fa-5098-4e7a-836b-f62342ac445b' const id = 'a59038fa-5098-4e7a-836b-f62342ac445b'
const id2 = '1b581662-2f49-4307-af93-fcd97a1dbd8e' const id2 = '1b581662-2f49-4307-af93-fcd97a1dbd8e'
@ -92,10 +91,6 @@ JSON.parse(`{
<div class="button-container"> <div class="button-container">
<a href="/download"><button class="colored">Download Now</button></a> <a href="/download"><button class="colored">Download Now</button></a>
</div> </div>
<Todo>
Push 'What is Kafka Dance?' down further, but come up with a visual indicator that there's
more to read. Something like this, but better:
</Todo>
</div> </div>
<div class="column"> <div class="column">

View File

@ -1,18 +1,14 @@
import * as staticAdapter from '@sveltejs/adapter-static'; import adapter from '@sveltejs/adapter-static';
import adapter from '@sveltejs/adapter-auto';
const a = adapter()
const s = staticAdapter.default({
pages: 'build',
assets: 'build',
fallback: null,
precompress: false
})
/** @type {import('@sveltejs/kit').Config} */ /** @type {import('@sveltejs/kit').Config} */
const config = { const config = {
kit: { kit: {
adapter: a, adapter: adapter({
pages: 'build',
assets: 'build',
fallback: null,
precompress: false
}),
} }
}; };