Skip to content

Commit

Permalink
use $base for path
Browse files Browse the repository at this point in the history
  • Loading branch information
GitPaulo committed Jan 7, 2025
1 parent 2b0012a commit 8bcb657
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/routes/+page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
export const ssr = false;
export const prerender = true;

import { base } from "$app/paths";
import type { ExpansionsQuests } from "$lib/model.js";
export async function load({ fetch }): Promise<{ quests: ExpansionsQuests }> {
const response = await fetch("/Quests.json");
const response = await fetch(`${base}/Quests.json`);
if (!response.ok) {
throw new Error("Failed to fetch quests");
}
Expand Down

0 comments on commit 8bcb657

Please sign in to comment.