Stop offering a Windows zip while Create Project 404s.
The packaged FastAPI static mount returned JSON 404 for /project/{id}. Serve the SvelteKit fallback page for client routes, and point README at source until a zip is trustworthy.
This commit is contained in:
@@ -1,6 +1,4 @@
|
||||
import { error } from '@sveltejs/kit';
|
||||
|
||||
export const prerender = true;
|
||||
export const prerender = false;
|
||||
export const ssr = false;
|
||||
|
||||
export function load() {
|
||||
|
||||
@@ -10,6 +10,9 @@ const config = {
|
||||
}),
|
||||
paths: {
|
||||
base: '',
|
||||
// Absolute /_app/... URLs so a document load of /project/12 still
|
||||
// finds the bundle. adapter-static otherwise emits ./_app on prerendered pages.
|
||||
relative: false,
|
||||
},
|
||||
prerender: {
|
||||
handleHttpError: ({ path, message }) => {
|
||||
|
||||
Reference in New Issue
Block a user