We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a9bd1ab commit 2c71301Copy full SHA for 2c71301
src/routes/+page.svelte
@@ -11,11 +11,11 @@
11
import type { NesCartItem } from '../models/NesCartItem';
12
import carts from '../nesCarts.json';
13
import { onMount } from 'svelte';
14
+ import { base } from '$app/paths';
15
- const basePath = import.meta.env?.VITE_BASE_URL ?? '';
16
const baseCarts = carts.map((cart) => ({
17
...cart,
18
- coverPhotoUrl: `${basePath}${cart.coverPhotoUrl}`
+ coverPhotoUrl: `${base}${cart.coverPhotoUrl}`
19
}));
20
21
let nesCarts: NesCartItem[] = takeCarts(20);
0 commit comments