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
I wasn't aware of this command wrangler dev --persist-to=/path/to/file
This would help a lot in a monorepo setup, I am building @celestial-rose/stack and I am currently doing some workaround with ugly symlinks to perform the link between local .wrangler states.
Describe the solution you'd like
Passing the path of this command to the new 0.6 opennextjs-cloudflare build command
Describe alternatives you've considered
It could also be a key in the initial object for initOpenNextCloudflareForDev() since even when running next dev thanks to this config in next.config.mjs, it builds the .wrangler directory anyway.
I actually would prefer that but I guess it's more work
@opennextjs/cloudflare version
0.5
Additional context
No response
Before submitting
I have checked that there isn't already a similar feature request
This is a single feature (not multiple features in one request)
The text was updated successfully, but these errors were encountered:
You should be able to pass this flag to our opennextjs-cloudflare preview and opennextjs-cloudflare deploy already.
I'm not sure I follow the reason behind passing it to the opennextjs-cloudflare build command - would be good to understand how it would be expected to be used there.
Adding the option to pass it to initOpenNextCloudflareForDev({ ... } ) is being addressed in #469
Very cool stuff ! Thanks ! I have a solid argument to migrate https://github.com/celestial-rose/stack to 0.6 now
No - no specific need besides having it in the CLI other than being consistent with Wrangler's API
Closing !
Is your feature request related to a problem?
Hey team, thanks a million for your work
I just stumbled upon this piece of docs in Cloudflare's documentation
https://developers.cloudflare.com/d1/best-practices/local-development/#persist-data
I wasn't aware of this command
wrangler dev --persist-to=/path/to/file
This would help a lot in a monorepo setup, I am building @celestial-rose/stack and I am currently doing some workaround with ugly symlinks to perform the link between local .wrangler states.
Describe the solution you'd like
Passing the path of this command to the new 0.6
opennextjs-cloudflare build
commandDescribe alternatives you've considered
It could also be a key in the initial object for
initOpenNextCloudflareForDev()
since even when runningnext dev
thanks to this config innext.config.mjs
, it builds the.wrangler
directory anyway.I actually would prefer that but I guess it's more work
@opennextjs/cloudflare version
0.5
Additional context
No response
Before submitting
The text was updated successfully, but these errors were encountered: