Skip to content

Commit

Permalink
fix: use base from app paths
Browse files Browse the repository at this point in the history
  • Loading branch information
dually8 committed May 24, 2024
1 parent a9bd1ab commit 2c71301
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
import type { NesCartItem } from '../models/NesCartItem';
import carts from '../nesCarts.json';
import { onMount } from 'svelte';
import { base } from '$app/paths';
const basePath = import.meta.env?.VITE_BASE_URL ?? '';
const baseCarts = carts.map((cart) => ({
...cart,
coverPhotoUrl: `${basePath}${cart.coverPhotoUrl}`
coverPhotoUrl: `${base}${cart.coverPhotoUrl}`
}));
let nesCarts: NesCartItem[] = takeCarts(20);
Expand Down

0 comments on commit 2c71301

Please sign in to comment.