nathaniel
CDCloudflare Developers
•Created by nathaniel on 6/14/2024 in #general-help
Trouble with tunnels
I set up a barebones tunnel based on the "get started" page in the docs (https://developers.cloudflare.com/cloudflare-one/connections/connect-networks/get-started/create-local-tunnel/). I routed that through a domain on my account. All steps go fine until
cloudflared tunnel run [name]
, which gives the following error:
This isn't in the troubleshooting section. I tried some different configurations, but I'm specifically interested in making a local webserver accessible via the public hostname. What should I do?7 replies
CDCloudflare Developers
•Created by nathaniel on 5/13/2024 in #pages-help
Tree-shaking for Pages Function
I've got a codebase tested with Vitest, exclusively using in-source testing (https://vitest.dev/guide/in-source.html). When building the front-end application,
import.meta.vitest
is defined as "undefined"
so the tests get eliminated by the bundler. This doesn't seem to work with Pages Functions. When I import modules that have little source code but massive tests, it seems like the content of the tests gets included, cause the build will fail with the message Error: Failed to publish your Function. Got error: Your Functions script is over the 1 MiB size limit (workers.api.error.script_too_large)
. Is there any way to tree-shake exported handlers? (My current workaround is adding a script to the build step that builds a second time with routes as entrypoints, then moves them to the functions directory. Would really like to avoid this.)1 replies
CDCloudflare Developers
•Created by nathaniel on 2/4/2024 in #workers-help
Error when uploading worker script via API
Hello, been trying to upload a worker module via the Cloudflare API, but I'm running into the following error message:
I've tried testing with the exact code from the API docs (https://developers.cloudflare.com/api/operations/worker-script-put-content) via javascript and curl, but both generate the same issue. I can upload workers in service worker format fine.
2 replies
CDCloudflare Developers
•Created by nathaniel on 1/29/2024 in #general-help
Change email address
I created an account with my student email for personal use, but they've recently added some integration that makes me do a SSO-email-code thing every time I want to log in. When I went to change the email, I can no longer do so. Can my email change be grandfathered in, since I created the account before the SSO policy was added?
17 replies
CDCloudflare Developers
•Created by nathaniel on 8/3/2023 in #pages-help
Internal error
Deployment ID: 5e1b343f-5a69-4e9a-bc2c-a6bd2bacf406
What happened?
2 replies