Skip to content

Commit

Permalink
Try to fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
BenCheung0422 committed Jul 6, 2024
1 parent 5831414 commit 959d6d5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
8 changes: 1 addition & 7 deletions src/routes/dev/+layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
2 changes: 1 addition & 1 deletion svelte.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}),
Expand Down

0 comments on commit 959d6d5

Please sign in to comment.