diff --git a/src/routes/dev/+layout.js b/src/routes/dev/+layout.js index c04cfbf..878b802 100644 --- a/src/routes/dev/+layout.js +++ b/src/routes/dev/+layout.js @@ -6,16 +6,10 @@ import {dev} from "$app/environment"; // Source: https://stackoverflow.com/a/73638129 // Source: https://stackoverflow.com/a/68074574 -export function load() { - if (!dev) { - error(404, "Not Found"); - } -} - // if (!dev) { // error(404, "Not Found"); // } -// export const prerender = dev; +export const prerender = dev; export const ssr = dev; export const csr = dev; diff --git a/svelte.config.js b/svelte.config.js index a186dc2..a82df74 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -5,7 +5,7 @@ import { vitePreprocess } from '@sveltejs/vite-plugin-svelte'; const config = { kit: { adapter: adapter({ - // fallback: '404.html', + fallback: '404.html', pages: './build', assets: './build' }),