-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Open
Description
Which project does this relate to?
Start
Describe the bug
When using @tanstack/nitro-v2-vite-plugin to configure the publicAssets option in Nitro v2, the build output folder specified by the Vite config option build.assetsDir does not get copied into the .output/public folder.
This results in missing chunks for the production build and thus breaking the build.
Your Example Website or App
https://stackblitz.com/edit/github-egpnw7wu?file=vite.config.js
Steps to Reproduce the Bug or Issue
- Specify the
build.assetsDiroption invite.config.ts - Use the Nitro plugin
- Specify the
publicAssetsoption in the Nitro plugin config invite.config.ts
Expected behavior
.output/public should contain chunks from the specified build.assetsDir folder but it doesn't.
Screenshots or Videos
After running build (with build.assetsDir set and publicAssets set):
- you can see there is no
customfolder
After running build (with build.assetsDir set and publicAssets NOT set):
- you can see there is the
customfolder
Platform
- Router / Start Version: 1.134.12
- OS: macOS
- Browser: Chrome
- Browser Version: 141
- Bundler: vite
- Bundler Version: 7.1.7
Additional context
No response
coderabbitai
Metadata
Metadata
Assignees
Labels
No labels