You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Public assets return 404 in dev with nitroViteEnvironment #35992
Start the development server and request the file:
pnpm dev
curl -i http://localhost:3000/hello.txt
Describe the bug
Files in the resolved Nuxt public directory return an HTML 404 during development when experimental.nitroViteEnvironment is enabled.
The public directory is also present in Nitro's resolved publicAssets, but requests for file-like paths do not reach Nitro's development static handlers. Vite is created with publicDir: false, so it does not serve them either. The result is:
HTTP/1.1 404 Not Found
content-type: text/html; charset=utf-8
The expected behavior is for /hello.txt to return the contents of public/hello.txt, matching ordinary Nuxt development behavior.
#35604 - feat(nitro,schema,vite): add experimental support for nitro/vite [merged] #35630 - fix(nitro): render error.vue for direct /__nuxt_error visits [open] #35674 - feat(nuxt): warn when public files override application routes [merged] #35891 - feat(schema): enable nitro vite environment by default in v5 [merged] #35931 - fix(nitro): correct dev and build behaviour for nitro/vite [merged]
📝 Issue Planner
Check the box below or use the @coderabbitai plan command to generate an implementation plan and prompts that you can use with your favorite coding assistant.
Create Plan
🧪 Issue enrichment is currently in open beta.
You can configure auto-planning by selecting labels in the issue_enrichment configuration.
To disable automatic issue enrichment, add the following to your .coderabbit.yaml:
issue_enrichment:
auto_enrich:
enabled: false
💬 Have feedback or questions? Drop into our discord!
Activity
coderabbitai commentedon Aug 5, 2026
🔗 Related PRs
#35604 - feat(nitro,schema,vite): add experimental support for
nitro/vite[merged]#35630 - fix(nitro): render
error.vuefor direct/__nuxt_errorvisits [open]#35674 - feat(nuxt): warn when public files override application routes [merged]
#35891 - feat(schema): enable nitro vite environment by default in v5 [merged]
#35931 - fix(nitro): correct dev and build behaviour for
nitro/vite[merged]📝 Issue Planner
Check the box below or use the
@coderabbitai plancommand to generate an implementation plan and prompts that you can use with your favorite coding assistant.🧪 Issue enrichment is currently in open beta.
You can configure auto-planning by selecting labels in the issue_enrichment configuration.
To disable automatic issue enrichment, add the following to your
.coderabbit.yaml:💬 Have feedback or questions? Drop into our discord!
danielroe commentedon Aug 8, 2026
this was a nitro bug and has been resolved upstream in nitrojs/nitro#4467
onmax commentedon Aug 8, 2026
thanks! I thought it was 100% nuxt dev issue. I didn't think of checking nitro!