[Bug]: Theme assets /assets/*
returns 404
#4607
Labels
Area: @shopify/theme
@shopify/theme package issues
#gsd:40767
Fortify local development experience for Liquid themes
Theme Sev-2
second highest severity for theme related bug
Type: Bug
Something isn't working
Please confirm that you have:
In which of these areas are you experiencing a problem?
Theme
Expected behavior
We use Vite to serve assets in development and when an asset is referenced (such as
url('Inter-Regular.woff2')
in CSS), we proxy thehttp://localhost:5173/Inter-Regular.woff2
request tohttp://127.0.0.1:9292/assets/Inter-Regular.woff2
. With--legacy
enabled these return the files.Actual behavior
Returns a 404.
Verbose output
GET /assets/Inter-Regular.woff2
2024-10-09T08:31:02.851Z: → Rendering https://[...].com/assets/Inter-Regular.woff2?_fd=0&pb=0 (with )...
2024-10-09T08:31:03.148Z: Request to https://[...].com/assets/Inter-Regular.woff2?_fd=0&pb=0 completed in 297 ms
With response headers:
2024-10-09T08:31:03.149Z: ← 404 (request_id: f4ee6045-cc21-4f63-891c-e17ddefa5ed1-1728462662)
Reproduction steps
assets/
directoryshopify theme dev
http://127.0.0.1:9292/assets/Inter-Regular.woff2
Operating System
MacOS 14.6.1 (23G93)
Shopify CLI version (check your project's
package.json
if you're not sure)3.68.0
Shell
zsh
Node version (run
node -v
if you're not sure)v22.6.0
What language and version are you using in your application?
No response
The text was updated successfully, but these errors were encountered: