workers-help
pages-help
general-help
durable-objects
workers-and-pages-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
workers-for-platforms
workerd-runtime
web3
š¤turnstile
radar
web-research
logs-engine
cloudflare-go
terraform-provider-cloudflare
workers-ai
browser-rendering-api
logs-and-analytics
next-on-pages
cloudflare-ai
build-caching-beta
hyperdrive
vectorize
ai-gateway
python-workers-beta
vitest-integration-beta
workers-observability
workflows-beta
vite-plugin
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
I ve seen this error mentioned there
Error: Failed to publish your Function. Got error: Error: Script startup exceeded CPU time limit
our main app is Remix app. Like what all happens during the startup? Like could I just achieve same setup with some local test? I already tried profiling importing the compiled functions handler. Is this the correct way? Would make me sad if we'd have...Does anyone know how to do local
Larry thank you for the response How
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 š„²...hey has anyone been able to figure out a
stevefrench 9072 This is definitely an
Service bindings
npx -y https://prerelease-registry.developers.workers.dev/runs/3446839001/npm-package-wrangler-2162 pages dev ./public --local --persist --service TEST=a
when I print out my context I get { ASSETS: Fetcher {}, ENVIRONMENT: 'development' }
no service binding there. Thank you for your help!...Interaction with dbs
/functions/api/formSubmit
you should fetch /api/formSubmit
(notice the lack of the /functions
part)
2. a heads-up that regular databases are not compatible with Workers or Functions, you'd need to use a database that has an HTTP interface such as Supabase or the newly opened #d1-open-alpha...While Functions are in beta any requests
Hmh can you get a more specific error by
try... catch...
blocks? Do you get a plain 500 error or cloudflare's timeout page?