D Trombett
CDCloudflare Developers
•Created by D Trombett on 8/23/2024 in #pages-help
next-on-pages not working on Windows
I'm on Windows and when I run
npm run pages:build
I get the following warning:
The problem is that it immediately opens a WSL instance and it's really unclear what to do. If I close it I get the following:
If I try to run npm run pages:build
directly inside WSL the result is the same. What can I do to test it locally?3 replies
CDCloudflare Developers
•Created by D Trombett on 8/23/2024 in #pages-help
Cancel deployments queue
So, I have a github repository linked to a Pages project and sometimes a lot of deployments are queued (for example when merging dependabot PRs), slowing down a lot the final production deployment so I was wondering if it's possible to automatically discard other queued/in progress production deployments when a new one is queued so that it is deployed faster.
Consider that I'm using Next.js, so every deployment takes about 2 minutes
Thanks in advance!
5 replies
CDCloudflare Developers
•Created by D Trombett on 8/16/2024 in #workers-help
Verify sender in Email Worker
I'm using an email worker to check if the sender is part of a list and, if so, I do some actions. This is working perfectly and I'm amazed about this feature!
But now I'm wondering, can I be sure that the email sender is verified? In other words, can someone impersonate an email in the list (assuming they know what are the addresses) potentially causing harmful behaviour?
3 replies
CDCloudflare Developers
•Created by D Trombett on 8/14/2024 in #workers-help
Dynamic Site with Workers
I currently have a worker which handles post requests for the root path and uses a database and a kv namespace. The context is a discord bot that handles the interactions only via webhook. Now I want to build a website for it (like a dashboard) and, since it needs to use the same bindings and data, I was thinking to use the Worker so that I can integrate everything.
I discovered Workers Sites but I see that for new projects it recommends to use Pages. I never used Pages before but obviously it wouldn't be a problem for me but now I'm unsure what to do. I've considered
- using Workers Sites to integrate everything into the existing Worker
- using Pages to host separately the Worker and the website
- using Pages to host both the website and the main POST handler (is this even possible?)
What do you suggest?
7 replies
CDCloudflare Developers
•Created by D Trombett on 6/16/2024 in #workers-help
Exceeding usage limit
6 replies