-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Closed
Milestone
Description
Describe the bug
Preview build of sveltekit doesn't match asset paths the same way as dev build.
Reproduction
Put let's say image.PNG inside of static then in index.svelte <img src="/image.png" /> and let's run npm run dev, then run build and preview and the image won't be displayed anymore.
Logs
No response
System Info
System:
OS: Windows 10 10.0.19041
CPU: (6) x64 Intel(R) Core(TM) i5-8600K CPU @ 3.60GHz
Memory: 6.21 GB / 15.94 GB
Binaries:
Node: 16.15.0 - C:\Program Files\nodejs\node.EXE
npm: 8.8.0 - C:\Program Files\nodejs\npm.CMD
Browsers:
Edge: Spartan (44.19041.1023.0), Chromium (97.0.1072.76)
npmPackages:
@sveltejs/adapter-auto: next => 1.0.0-next.40
@sveltejs/kit: next => 1.0.0-next.328
svelte: ^3.44.0 => 3.48.0Severity
annoyance
Additional Information
No response
Metadata
Metadata
Assignees
Labels
No labels