-
Notifications
You must be signed in to change notification settings - Fork 791
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🚀 Feature Request: wrangler pages dev --remote
#3505
Comments
I had a similar issue where I was trying to debug some caching behaviour of |
Using the dashboard playground as outlined on: https://developers.cloudflare.com/workers/learning/playground/#using-the-playground allows quick iterating on code that runs on CF servers and may be helpful in some cases. |
For context, this is the file that runs |
I'd like to bump up visibility as it's a blocker for multiple teams. We could not test our app against production via |
+1 for this feature. We often see different responses to local and CDN sub-requests. We don't have a simple way to preview or debug these differences. |
Also in need of a solution here, but specifically for me, I need a way to access remote Cloudflare KV/R2 after running 'wrangler pages dev' |
I'm suffering working locally, trying to figure out how to access a file uploaded to local storage via R2. If I could run |
I really need this feature, it works for workers, why not for pages? |
+1 :/ |
Was surprised to find out the Was hoping I could run something like Edit: I understand the idea trying to prevent people from messing up their "production" KV store when running their app locally. After playing around with this some more, I think the ideal state would be allowing developers the choice to decide (via CLI flags or wrangler.toml) which KV store we wanted to bind to when running the For example, you could bind to the preview KV store, or if you really wanted to, you could bind to your "production" KV store, or bind to a local file based KV store. This would make it easier to debug KV prod data issues instead of forcing to always use a local file based KV store when running |
Commenting for visibility. This is really a deal breaker, as i want to test against remote data on my local machine. Is there any hack people have figured out to achieve this? I am trying to use the KV binding. This is currently possible for workers but not for pages. I could not find a fix so I am using upstash redis for KV and delayed execution(which was achievable with durable object alarms) |
I also had this need. I work with a small team, and right now we are having to share our local state folder around, which is getting messy. Running |
My nextjs ssr project relies on D1 data to render components. Every time I modify the UI, I can only re-publish it, including changing a css to see the effect, so I published it 300+ times a day, which is ridiculous!!!! |
I have not setup D1 tables so far. Now use migration SQL files generated by drizzle kit (with local SQLite db). Currently `wrangler pages dev` doesn't support `--remote`, afraid we can only run app with remote D1 "after" deployment. cloudflare/workers-sdk#3505
I am using HonoX which framework is base on cf pages. I need to sign url with S3 SDK, the local resource could not do it. |
Describe the solution
Hi everyone,
When developing frontend applications using Cloudflare pages, we use some of the
CF-
headers to validate some requests (for example, getting thecf-ipcountry
to show the user a recommendation for switching languages).There are a few more headers that are relevant to our logic, but at the moment we are unable to test these headers and the logic behind them without first deploying to pages, tailing the logs and then making some improvements to the code.
Maybe it's as simple as "copying" the logic from
wrangler dev --remote
to pages, but I haven't looked at it directly, nor do I know the exact logic behind wrangler.Thanks in advance and appreciate all the work,
David
The text was updated successfully, but these errors were encountered: