https://discord.cloudflare.com logo
Join Discord
Powered by
# pages-help
  • worker error when using Building Nitro Server (preset: cloudflare_pages) and Prisma
    u

    0xT

    01/15/2023, 9:40 PM
    adlab.pages.dev build log is attached
    Copy code
    13:31:53.588    ✨ Success! Uploaded 0 files (38 already uploaded) (0.62 sec)
    13:31:53.589    
    13:31:54.069    ✨ Upload complete!
    13:31:55.513    Success: Assets published!
    13:31:56.628    Error: Failed to publish your Function. Got error: Uncaught TypeError: Cannot read properties of undefined (reading 'fd')
      at worker.mjs:6782:98 in useColors
      at worker.mjs:6678:98 in createDebug
      at worker.mjs:13054:40 in debugCall
      at worker.mjs:13092:16
      at worker.mjs:20707:3
    the nitro server builds
    Copy code
    13:31:22.277    ℹ Building Nitro Server (preset: cloudflare_pages)
    13:31:42.848    ✔ Nitro server built
    13:31:42.917    └─ functions/path.js (1.35 MB) (367 kB gzip)
    13:31:42.918    Σ Total size: 1.35 MB (367 kB gzip)
    adlab-76a100cb-4694-4abd-a156-c1858d31f618
    w
    i
    k
    • 4
    • 27
  • Deployment fails `SubtleCrypto not supported`
    c

    CanRau

    01/24/2023, 1:03 PM
    I'm using https://github.com/tsndr/cloudflare-worker-jwt and never had issues, I'm pretty sure my use hasn't changed & I'm not using
    SubtleCrypto
    directly anywhere nor do I use before mentioned jwt lib outside of SvelteKit hooks/handlers. I retried the deployment just in case but got the same error 🥺 What am I doing wrong or what might've changed? Looked into switching to GitHub Actions as a "quickfix", tho we don't have teams so no environments which means managing secrets would be a mess.
    x
    • 2
    • 2
  • Cloudflare Pages on GitHub, with private submodules
    l

    liv_curious

    02/09/2023, 6:46 PM
    I have a project repository hosted on GitHub, which I am trying to deploy using Cloudflare Pages. It has a git submodule, which is also hosted on GitHub but private. Cloudflare Pages App has access to both repositories. When building the project, it fails in checking out the submodule.
    t
    d
    • 3
    • 5
  • Node.js projects using wasm-pack
    s

    skyphyr

    02/10/2023, 8:57 PM
    Is there anything special that needs to be done to get projects which use wasm-pack to work with pages? Is git based deployment supported? Should I be trying to use Wrangler? Something else?
    • 1
    • 2
  • vite build is not working on my ci
    u

    심윤섭

    02/21/2023, 11:58 AM
    I'm trying to build my React + TS + Vite page on Cloudflare Pages. But Error occured on my build.
    main.tsx
    file can't resolve my relative path file. How to I resolve error?
    s
    s
    • 3
    • 6
  • When building a next.js app (using pnpm as package manager), it will fail
    u

    橙了个橙

    02/22/2023, 8:45 AM
    It seems like pnpm is not pre-installed in building environment, but when the build step comes to npx vercel build, it will detect pnpm as package manager and then run
    pnpm install
    , and cause an error. It could be resolved by removing
    pnpm-lock.yaml
    , but if
    @cloudflare/next-on-pages
    could detect it earlier and install pnpm could alse prevent this error.
  • Unable to delete Pages project (Code: 8000000)
    c

    Charca

    02/24/2023, 6:15 AM
    Hey there! I'm trying to delete a Pages project I no longer need but I'm getting the following error message: > An unknown error occurred. Contact your account team or Cloudflare support: https://cfl.re/3WgEyrH. (Code: 8000000) I've tried contact support but had no luck. Any chance someone here could give me a hand? Happy to provide more details. Thank you!
    w
    p
    • 3
    • 8
  • Cannot delete a project in Pages
    m

    Mikyari

    02/28/2023, 2:30 PM
    I don't know why I cannot delete a project in Pages section It only showed me this error > An unknown error occured. Contact your account team or Cloudflare support: https://cfl.re/3WgEyrH. (Code: 8000000)
    e
    k
    +4
    • 7
    • 16
  • Cloudflare Pages, Remix with Sentry
    s

    snapo

    03/22/2023, 3:59 PM
    Hi community! I have been trying to get Sentry set-up with Cloudflare Pages and Remix. Currently only focusing on client side of things and later loaders/actions. I have tried to follow these two docs: https://docs.sentry.io/platforms/javascript/guides/remix/ https://developers.cloudflare.com/pages/platform/functions/plugins/sentry/ When developing locally, I can see errors being sent and traced in Sentry. However, when triggering errors in Cloudflare Pages preview application, I can't see any traces in Sentry. I read through previous Sentry discussions in this channel, but could not find anything that would bring resolution. Any tips how to get Remix and Sentry to work in CF Pages?
    s
    k
    • 3
    • 8
  • Could not resolve "crypto" on wrangler pages publish
    d

    Danny Roberts

    03/28/2023, 5:33 PM
    Every time I try
    Copy code
    wrangler pages publish
    I get the error in the screenshot. The Build has been working fine with in dev using the node-compat flag.
    Copy code
    npx wrangler pages dev build  --node-compat
    I also followed the errors directions and added
    Copy code
    node_compat = true
    to my wrangler.toml file. I also have
    Copy code
    node_compat
    set up in production & preview compatibility flags. I would love help getting past this error and get back publishing. thank you 🙂 My Pages.dev: nftdev-igorandandre.pages.dev My account ID: 596032e44d9793dca36eb2e347ab8ead
    s
    w
    +2
    • 5
    • 21
  • Turbo NextJs Web Project Build is failing due to `error TS6053: File 'tsconfig/nextjs.json' not fou`
    m

    Mahesh_Muttinti

    04/01/2023, 10:16 AM
    I was getting the build error for my nextjs web project. I was using the turbo repo. Attached the snapshot. Please help me to resolve this error.
    h
    • 2
    • 8
  • Only deploy to pages if tests pass
    c

    Copy

    04/02/2023, 6:29 PM
    Is there a way to deploy only after tests pass? Currently I have my web app in a GitHub repo and my tests run on GitHub Actions, but when I push to the repo the test and deploy action run simultaneously
    z
    g
    k
    • 4
    • 3
  • Deleting access policies makes preview deployment inaccessible
    c

    c becker

    04/04/2023, 11:51 PM
    I've just recently removed the app from access so that the preview deployments are accessible to anyone. I'm getting the message
    Copy code
    Unable to find your Access application!
    when trying to navigate to a preview deployment of my site.
    • 1
    • 2
  • API request failed while uploading images to a deployment
    p

    pluie

    04/05/2023, 1:20 PM
    this... doesn't really look right:

    https://media.discordapp.net/attachments/1010929234778263653/1093161209915781130/image.png▾

    i tried both drag-and-drop upload & wrangler, and both are reporting errors, so i guess it's not a local issue... pages.dev url: https://site-images.pages.dev account ID: 87a34d30c490630ad7760b1e12497744
    j
    • 2
    • 12
  • Nuxt 3 - Server api function to cloudflare function issuescustom domain
    m

    Matt Grah.am

    04/06/2023, 4:31 AM
    I am currently writing an Algolia indexer and webhook, however I am having some headaches where the functions work perfect in local, but when they are uploaded to Cloudflare as functions I am getting the following errors: The indexer as an algolia issue where when trying to access the index it returns a 500 error with the message Unreachable hosts - your application id may be incorrect. If the error persists, contact [support@algolia.com](support@algolia.com). The webhook as the same above message, however I am also having issues with crypto, where bodyHmac returns as [Function: fn$1] and not the encrypted string.
    • 1
    • 4
  • Error: We could not find that Workers Service on your account. (Code: 8000068)
    m

    mimo

    04/07/2023, 8:53 AM
    I’m trying to use functions on Cloudflare Pages and have created a /functions sub folder with an exemplary demo.js within it. My assumption based on what I read in the docs is that this should work automatically (i.e. create a Worker service that manages all functions in the background). In reality, it’s giving me a HTTP error 405 (Method Not Allowed) when I’m trying to access /demo from within my Cloudflare Page. I tried to analyze the function’s log in Cloudflare Dashboard but that isn’t working either, instead giving me the error We could not find that Workers Service on your account. (Code: 8000068). I’ve searched the web for this error code of course but it brings up nothing. I also tried deleting and recreating my Cloudflare Page completely and also deleted any Worker services, but to no avail. This seems to be a Cloudflare internal error. Is there anything else I could try? Thanks for any suggestions!
    s
    • 2
    • 38
  • proxied domains can't be pointed to
    s

    sometime

    04/07/2023, 8:42 PM
    So I've got a cloudflare pages site accessed through a domain that's proxied through cloudflare's dns server thingies. And if I try to point another domain to that pages site, i get a 522 status code, despite that original cloudflare pages site being online and accessible through the original domain. I've made a sort-of diagram showing what works and what doesn't.
    Copy code
    2.domain -> 1.domain ( returns 522 )
    
    1.domain -> cloudflare -> pages site ( works fine )
    w
    • 2
    • 4
  • Page can’t be found and Deployment Not Found
    n

    nitsua

    04/10/2023, 11:04 AM
    I'm trying to deploy a Spotify app using an index.html, a style.css and a script.js file. I tried different file structures but https://www.chronosong.pages.dev/ gives me Page not found and https://www.chronosong2.pages.dev/ would give Deployment Not Found (or invalid redirect URI with chronosong2.pages.dev). Account id: 3b3f7b99ea709a284d5c2e2958d2cf04 Can anyone point me in the direction of what is missing? This is my setup in Spotify currently:
    w
    • 2
    • 2
  • remix app deployed using pages
    b

    bkyerv

    04/10/2023, 3:12 PM
    Has anyone come across a situation where an empty screen is rendered upon deployment? I have set env var node_version to 16.10
    j
    • 2
    • 10
  • Setup docs site in Subdirectory of Existing Static Website
    a

    AJ | Aklivity.io

    04/10/2023, 8:28 PM
    I am following an older blog and using a worker to redirect traffic from a subdirectory on one pages site to another pages site. The route I have in place doesn't get triggered. Should I be using functions instead? https://qoyyimafiassalam.medium.com/reverse-proxy-with-cloudflare-workers-setup-blog-in-subdirectory-of-existing-static-website-96e4d186d4f0
    h
    • 2
    • 34
  • Cache Purge
    p

    peterz

    04/10/2023, 10:53 PM
    I'm trying to use CF Pages, but I can't find a way to purge cache (after CMS changes), not even after deployment. All I can find to purge cache is related to zones, but I don't even have that option. How to do this?
    h
    • 2
    • 18
  • page build logs export to other platforms
    l

    lookie02

    04/11/2023, 10:34 AM
    I was wondering if there is any solution to sending the build logs to other platforms or slack for each build ?
  • Enable SPA-routing for sub-folder
    o

    oskar

    04/11/2023, 11:10 AM
    Hello, by default the
    wrangler pages dev
    routes every 404 to index.html. I have a
    /subfolder/index.html
    with a SPA router ready. When yo visit
    /subfolder/my-spa-route
    it falls back to
    ./index.html
    instead of
    /subfolder/index.html
    . How can this be solved? Maybe a redirect in
    _redirects
    ? But couldn't figure it out.
    • 1
    • 1
  • Is there a way to include private submodules while deploying.
    d

    dikshant

    04/11/2023, 11:42 AM
    Currently I have two repos in my org . main repo have a dependency of second repo as a submodule and is private but clo9udflare have access to both the repos. IN build step it is saying "fatal: could not read Username for 'https://github.com'" Deployment ID: 5e5bb9ec-63bf-46bf-9f25-f558d795d08a Account ID: 670706d3e64d2d227a13386049f6eb3f Error log: fatal: could not read Username for 'https://github.com': Input/output error
  • Env vars not being loaded on CF Pages domain
    v

    Vero 🐙

    04/11/2023, 12:02 PM
    I am deploying using Github Actions and therefore, I am uploading on CF Pages with cloudflare/wrangler-action@2.0.0 I have an issue because I have some environment variables in a .env file For some reason, when the deploy is done, the environment variables are not loaded on CF Pages domain I looked for an answer but found not solution I know we can manually add environment variables to a CF Pages project but I want to automate as much as possible I am creating a .env file when running the Github Action with the correct environment variables I get the correct values when running npm run build But when I look at the CF Pages domain, it does not log the correct values By: @Anthodpnt
    • 1
    • 2
  • Help with domain redericting
    յ

    յαη

    04/11/2023, 4:40 PM
    Hey, does anyone maybe know why I get the "ERR_TOO_MANY_REDIRECTS" error when trying to access my page after configuring the rule in the first picture? I also configured a second rule (maybe this causes the error -> second picture)
    c
    • 2
    • 6
  • i can’t set Python version…
    h

    Haci

    04/11/2023, 11:21 PM
    I cant set Python version??
    w
    • 2
    • 5
  • cloudflare pages deployment failed
    m

    mrwind

    04/12/2023, 2:40 AM
    i deploy my website to pages with command
    wrangle pages publish
    it say i upload Deployment complete! but when i go to web dashboard it say deployment failed. how do i debug that ? Is there anyway to get a log message to understand why that deployment is failed.
  • Chromium no longer found on Cloudflare pages builds
    d

    Davste

    04/12/2023, 6:51 AM
    Within the last couple days, we're getting build errors attempting to have our pages pre-rendered with Scully, that uses Puppeteer: 1:51:13.741 Puppeteer cannot find or launch the browser. (by default chrome) 11:51:13.741 Try adding 'puppeteerLaunchOptions: {executablePath: CHROMIUM_PATH}' 11:51:13.741 to your scully.*.config.ts file. 11:51:13.741 Also, this might happen because the default timeout (60 seconds) is to short on this system 11:51:13.742 this can be fixed by adding the --serverTimeout=x cmd line option. 11:51:13.742 (where x = the new timeout in milliseconds) 11:51:13.742 When this happens in CI/CD you can find some additional information here: 11:51:13.742 https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md This was not happening before (last passed build with no changes was within the last 5 days) which means that most probably Chromium was included in the build image but it's no longer the case. Is there some ENV or flag I can use to re-enable it? Thanks
    z
    w
    +6
    • 9
    • 71
  • after setting cname to site.pages.dev i get 522 error
    s

    Stavros

    04/12/2023, 8:10 AM
    I have just uploaded my site to cloudflare pages, but once I added a custom domain, my domain has a connection timed out error. Does it take some time until the site is up?
    w
    • 2
    • 1
12345...9Latest