Skip to content

Commit 2c71301

Browse files
committed
fix: use base from app paths
1 parent a9bd1ab commit 2c71301

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/routes/+page.svelte

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111
import type { NesCartItem } from '../models/NesCartItem';
1212
import carts from '../nesCarts.json';
1313
import { onMount } from 'svelte';
14+
import { base } from '$app/paths';
1415
15-
const basePath = import.meta.env?.VITE_BASE_URL ?? '';
1616
const baseCarts = carts.map((cart) => ({
1717
...cart,
18-
coverPhotoUrl: `${basePath}${cart.coverPhotoUrl}`
18+
coverPhotoUrl: `${base}${cart.coverPhotoUrl}`
1919
}));
2020
2121
let nesCarts: NesCartItem[] = takeCarts(20);

0 commit comments

Comments
 (0)