diff --git a/src/routes/dev/+layout.js b/src/routes/dev/+layout.js index 878b802..c04cfbf 100644 --- a/src/routes/dev/+layout.js +++ b/src/routes/dev/+layout.js @@ -6,10 +6,16 @@ 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;