Fix dev & build differences

This commit is contained in:
Brieuc Dubois 2024-01-11 16:57:13 +01:00
parent 1a76019f1e
commit 3aad7f716e
2 changed files with 4 additions and 2 deletions

View File

@ -40,10 +40,10 @@
{:else} {:else}
<div <div
class="title" class="title"
on:click={() => (location.href = `/project.html?id=${project.id}`)} on:click={() => (location.href = location.origin + `/project/?id=${project.id}`)}
on:keydown={(e) => { on:keydown={(e) => {
if (e.key === 'Enter') { if (e.key === 'Enter') {
location.href = `/project?id=${project.id}`; location.href = location.origin + `/project/?id=${project.id}`;
} }
}} }}
tabindex="0" tabindex="0"

View File

@ -1 +1,3 @@
export const prerender = true; export const prerender = true;
export const ssr = false;
export const trailingSlash = 'always';