mirror of
https://github.com/cloudflare/vinext.git
synced 2026-05-09 08:25:34 +02:00
[PR #569] [MERGED] fix: add assets.directory to generated wrangler.jsonc #677
Labels
No labels
enhancement
enhancement
good first issue
help wanted
nextjs-tracking
nextjs-tracking
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/vinext#677
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/cloudflare/vinext/pull/569
Author: @james-elicx
Created: 3/16/2026
Status: ✅ Merged
Merged: 3/16/2026
Merged by: @james-elicx
Base:
main← Head:opencode/jolly-knight📝 Commits (1)
7c5368dfix: add assets.directory to generated wrangler.jsonc (required by wrangler 4.69+)📊 Changes
2 files changed (+19 additions, -1 deletions)
View changed files
📝
packages/vinext/src/deploy.ts(+3 -0)📝
tests/deploy.test.ts(+16 -1)📄 Description
Summary
assetsobject that lacks adirectoryfield, causingvinext deployto fail with:The 'assets' property in your configuration is missing the required 'directory' propertydirectory: "dist/client"to the generatedassetsblock ingenerateWranglerConfig()— this is always the correct value since@cloudflare/vite-pluginunconditionally writes static assets todist/client/assetsobject shape, and added a dedicated test for thedirectoryfieldNotes
not_found_handling: "none"is intentional and unchanged — it ensures unmatched requests fall through to the user Worker (enabling SSR) rather than being handled by the asset worker directlyFixes #219
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.