mirror of
https://github.com/kevin-DL/sapper.git
synced 2026-01-22 15:15:19 +00:00
shuffle things around
This commit is contained in:
@@ -5,6 +5,8 @@ title: Introduction
|
|||||||
### Before we begin
|
### Before we begin
|
||||||
|
|
||||||
> Sapper is in early development, and some things may change before we hit version 1.0. This document is a work-in-progress. If you get stuck, reach out for help in the [Discord chatroom](https://discord.gg/yy75DKs).
|
> Sapper is in early development, and some things may change before we hit version 1.0. This document is a work-in-progress. If you get stuck, reach out for help in the [Discord chatroom](https://discord.gg/yy75DKs).
|
||||||
|
>
|
||||||
|
> See the [migration guides](migrating) for help upgrading from older versions.
|
||||||
|
|
||||||
### What is Sapper?
|
### What is Sapper?
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ let json;
|
|||||||
|
|
||||||
export function get(req, res) {
|
export function get(req, res) {
|
||||||
if (!json || process.env.NODE_ENV !== 'production') {
|
if (!json || process.env.NODE_ENV !== 'production') {
|
||||||
json = JSON.stringify(generate_docs('migration')); // TODO it errors if I send the non-stringified value
|
json = JSON.stringify(generate_docs('migrating')); // TODO it errors if I send the non-stringified value
|
||||||
}
|
}
|
||||||
|
|
||||||
send(res, 200, json, {
|
send(res, 200, json, {
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
<script context="module">
|
<script context="module">
|
||||||
export async function preload() {
|
export async function preload() {
|
||||||
const sections = await this.fetch(`migration.json`).then(r => r.json());
|
const sections = await this.fetch(`migrating.json`).then(r => r.json());
|
||||||
return { sections };
|
return { sections };
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
Reference in New Issue
Block a user