Skip to content

Commit b71da69

Browse files
committed
Accommodate breaking changes
1 parent 42f16a9 commit b71da69

File tree

7 files changed

+32
-48
lines changed

7 files changed

+32
-48
lines changed

src/hooks.js

Lines changed: 0 additions & 4 deletions
This file was deleted.

src/routes/+layout.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export const ssr = false;
2+
export const prerender = true;
File renamed without changes.
File renamed without changes.

src/routes/about.svelte

Lines changed: 0 additions & 41 deletions
This file was deleted.

src/routes/about/+page.svelte

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<svelte:head>
2+
<title>About</title>
3+
</svelte:head>
4+
5+
<div class="content">
6+
<h1>About this app</h1>
7+
8+
<p>
9+
This is a <a href="https://kit.svelte.dev">SvelteKit</a> app. You can make your
10+
own by typing the following into your command line and following the prompts:
11+
</p>
12+
13+
<!-- TODO lose the @next! -->
14+
<pre>npm init svelte@next</pre>
15+
16+
<p>
17+
The page you're looking at is purely static HTML, with no client-side
18+
interactivity needed. Because of that, we don't need to load any JavaScript.
19+
Try viewing the page's source, or opening the devtools network panel and
20+
reloading.
21+
</p>
22+
</div>
23+
24+
<style>
25+
.content {
26+
width: 100%;
27+
max-width: var(--column-width);
28+
margin: var(--column-margin-top) auto 0 auto;
29+
}
30+
</style>

svelte.config.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ import adapter from '@sveltejs/adapter-static';
44
const config = {
55
kit: {
66
adapter: adapter(),
7-
prerender: {
8-
default: true,
9-
},
107
}
118
};
129

0 commit comments

Comments
 (0)