Skip to content

Commit

Permalink
prerender from the layout
Browse files Browse the repository at this point in the history
  • Loading branch information
sydseter committed Feb 10, 2025
1 parent bc06ad4 commit 2d1d6c0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cornucopia.owasp.org/src/routes/+layout.server.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { FileSystemHelper } from '$lib/filesystem/fileSystemHelper';
import { Text } from '$lib/utils/text.js';

export const trailingSlash = 'never';
export const prerender = true;
export async function load(event)
{
let content = FileSystemHelper.getDataFromPath('data/website/pages/footer');
Expand Down
5 changes: 1 addition & 4 deletions cornucopia.owasp.org/svelte.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,7 @@ export default {
include: ['/*'],
exclude: ["/build/*"]
},
fallback: '404.html',
prerender: {
default: true
}
fallback: '404.html'
}),
alias: {
$data: "data",
Expand Down

0 comments on commit 2d1d6c0

Please sign in to comment.