Channels
workers-help
pages-help
general-help
durable-objects
workers-discussions
pages-discussions
wrangler
coding-help
kv
🦀rust-on-workers
miniflare
stream
general-discussions
functions
zaraz
âš¡instant-logs
email-routing
r2
pubsub-beta
analytics-engine
d1-database
queues-beta
workers-for-platforms
workerd
web3
🤖turnstile
radar
web-research
logs-engine
cloudflare-go
terraform-provider-cloudflare
workers-ai
browser-rendering-api
analytics
next-on-pages
cloudflare-ai
build-caching-beta
hyperdrive
vectorize-beta
ai-gateway-beta
Looking at the linked tutorial, it
/functions
folderThanks for still thinking about it.
It does not return anything as the fetch never completes, so the function just shows 500 internal error on the server but doesn't execute any further. I tried shortcircuit with datares.status to check for 500 but it doesn't work that way as by that time the function errors out and not the origin server (for which datares checks for).
The 500 error is the function error but nothing is checking for the function error itself. I am not sure if I am explaining it well. ...
In my case I got these results:
Hey All, I am trying to understand how
@auth/sveltekit! I have the same issue
Using @sveltejs/adapter-cloudflare21:38:26.511 ✘ [ERROR] Could not resolve "crypto"...
Quick question around `pages dev`
pages dev
functions and restarting on code changes.
I've got a function that re-exports onRequest
from a different folder, and I use the wrangler dev bundling. The details are here: https://discord.com/channels/595317990191398933/1155875351201861632/1192079412615708674
For some reason during dev, codechanges are not applied without having to restart. Is this a bug?...Pages Functions as API
Send emails from a pages function
Hey guys, I have a question.
No Errors for POST Formdata
Hey all using SvelteKit in Cloudflare
wrangler pages dev -e dev -- vite dev
(proxy mode). Unfortunately it seems that a Location
header doesn't make it all the way back to my browser but instead wrangler/workerd/mf is following the redirect internally. Is there a way to enable this passthrough? I saw the attached note but not sure if that's the same thing. Strangely, it seems that other SvelteKit headers are passed through, i.e X-Sveltekit-Page
, bu...Hello I enabled functions and Static
.innerHTML="<form></form><form></form>"
by .innerHTML="<form method="POST"><input type="hidden" name="static-form-name" value="null" /></form><form method="POST"><input type="hidden" name="static-form-name" value="null" /></form>"
). Obviously this breaks the JS + the computation of the integrity hash, and I don’t see the point of this rewrite as this file is complet...Issues to run Pages functions locally
I am using D1 with Pages functions Was
DB
, suddenly in production the binding is __D1_BETA__DB
, anyone ever have seen this happen? Locally still works as expected (eg. DB
). I found that this prefix exists in miniflare codebase but really confused to see this pop-up in my production project....Hi James – yes I believe ` cloudflare
@cloudflare/next-on-pages
is what's being used under the hood (it's a bit opaque, but I see that in the docs and in node_modules). Will test out the new release, thank you!Hi everyone
Pages Functions with SvelteKit
/functions
folder be in my root dir for the build? or my actual top level of a repo? Have tried both and neither seem to be working?
Also are files with a -
supported i.e /functions/early-access.js
to domain.com/early-access
?
Trying to get a simple hello world function working and just getting a 404 with nothing else 🥲...