mirror of
https://github.com/kevin-DL/sapper.git
synced 2026-01-18 21:45:12 +00:00
shuffle things around
This commit is contained in:
@@ -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