mirror of
https://github.com/kevin-DL/sapper.git
synced 2026-01-14 12:04:39 +00:00
shuffle things around
This commit is contained in:
@@ -5,6 +5,8 @@ title: Introduction
|
||||
### 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).
|
||||
>
|
||||
> See the [migration guides](migrating) for help upgrading from older versions.
|
||||
|
||||
### What is Sapper?
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ let json;
|
||||
|
||||
export function get(req, res) {
|
||||
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, {
|
||||
@@ -1,6 +1,6 @@
|
||||
<script context="module">
|
||||
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 };
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user