https://discord.cloudflare.com logo
Join Discord
Powered by
# pages-help
  • ERR_TOO_MANY_REDIRECTS -Tunnel is healthy
    v

    Vsx

    05/15/2023, 12:34 AM
    I need help setting up my new domain on Cloudflare tunnels . The connection is healthy, I can ping the subdomain but I can't see my local web app.

    https://cdn.discordapp.com/attachments/1107465992814211102/1107465992948432986/Screenshot_2023-05-14_203328.png▾

    c
    • 2
    • 5
  • Pages only supports files up to 26.2 MB in size
    b

    Berk Dusunur

    05/15/2023, 3:15 AM
    I have deleted files on Github but still gives this error message. Any help will appreciated!
    z
    i
    r
    • 4
    • 5
  • Error 8000000 while creating a new page project
    n

    nwdles

    05/15/2023, 1:18 PM
    Hi all! Faced with error an attempt to publish a project of pages. Following command: CF_ACCOUNT_ID= CF_API_TOKEN= wrangler pages publish ./public --project-name= --branch=. I use an enterprise account if it helps to speed up finding the cause of this problem. This error:
    Copy code
    ✘ [ERROR] A request to the Cloudflare API (/accounts/id/pages/projects/name/deployments) failed.
    
      An unknown error occured. Contact your account team or Cloudflare support: https://cfl.re/3WgEyrH.
      [code: 8000000]
    w
    v
    +2
    • 5
    • 16
  • Using direct upload is it possibile to have preview URLs?
    p

    pigoz

    05/15/2023, 3:16 PM
    I'm looking at Cloudflare Pages for the first time 🙂 I was wondering if it's possibile to have PR previews with direct uploads.
    s
    • 2
    • 3
  • Custom domain on pages - working for anyone else?
    h

    helpful

    05/15/2023, 8:56 PM
    Happy dev week! I've set up a Pages project and am attempting to link a custom (sub)domain, however it's showing this as the domain's status: Inactive (Error) The domain in question is on Cloudflare & associated with the account attempting to add the domain. Subdomains using the same root domain are in use with other Pages. Have tried in a different browser & left it for an hour, yet the issue persists. When attempting to visit the custom domain, it shows the generic "Connection timed out" error. Visiting the Pages URL directly works fine. Are there any known issues?
    w
    e
    • 3
    • 10
  • Wrangler can't find project
    j

    jesterfebruary

    05/15/2023, 9:47 PM
    I'm trying to deploy my project using Wrangler CLI. I'm following this guide: https://dash.cloudflare.com/fdc0eac530c24f51565ad958399142a1/pages/new/wrangler-guide For the last step, I'm running this command: "CLOUDFLARE_ACCOUNT_ID=fdc0eac530c24f51565ad958399142a1 npx wrangler pages publish next" next is the folder with my build. I get the error "Project not found. The specified project name does not match any of your existing projects." Also, I don't know where to find my account ID.
    c
    • 2
    • 1
  • How to set up cloudflare to send an email (or emit some event) after page build is deployed?
    r

    Ron Strauss

    05/16/2023, 8:01 AM
    I would like to be able to send an email after a page has been successfully deployed. Right now I have a github action that automatically merges any open PRs at a certain time. I've connected cloudflare pages to this github repo, and it automatically deploys the new PR, which is great, but I also want to get an update when that happens. Any ideas? Should I use /functions somehow? I saw cloudflare has an email service, but I couldn't understand how to make it work... https://blog.cloudflare.com/sending-email-from-workers-with-mailchannels/ Sorry, I'm quite new to this 😦
    m
    w
    d
    • 4
    • 6
  • Pages doesn't get built
    a

    Assaf Morami

    05/16/2023, 8:51 AM
    Hello, We are seeing the message: "Your Cloudflare account has been blocked. Contact abusereply@cloudflare.com" when trying to create a new CF Pages site. In addition, new deployments are not working, probably as a part of the same issue for the account of admin@enigma.co. I have seen no emails or notifications about any such action, so any kind of clarity would be appreciated. Account ID: 81a12fbed295add9bc0cb00c2cd78470 Best,

    https://cdn.discordapp.com/attachments/1107953344443596843/1107953344787521598/image.png▾

    s
    • 2
    • 3
  • What website IP should I provide when asked for it?
    m

    Mityu

    05/16/2023, 2:55 PM
    To start off, I'm a noob. I'm using github and CF Pages to host a webpage, I also have a custom domain. Another company asked for our server's IP to configure their API connection. I'm guessing it's some kind of whitelist. This API would be for me to fetch data from them. As I understand it, CF Pages IPs aren't necessarily static. When I do an nslookup in terminal I get that my site's IP is 188.114.96.13 and 188.114.97.13. When I use some third party IP finder I get that the IPs are 172.67.203.182 and 104.21.44.210, and I do seem to have A records pointing my root and www.root to these last 2 IPs. All of these are CF IPs, but they aren't all on the https://www.cloudflare.com/en-gb/ips/ CF IP tables. So my question now is, how does this work? Why are different IPs being detected? And what IP or IPs am I supposed to be giving them, seeing as my website's IP could change?
    c
    • 2
    • 2
  • Add another person to my Cloudflare page
    j

    Jack!

    05/16/2023, 4:57 PM
    Does anybody got any idea on how to give someone access to a cloudflare page? Everything seems to be account wide and no matter how many permissions I give they can't access the page I've given them access to the domain connected to the page in Cloudflare and added them as a collaborator on github, but they still can't see the project in my account pages section
    s
    • 2
    • 19
  • Wrong link in Pages Dashboard for Service Bindings
    t

    trev

    05/16/2023, 7:25 PM
    I noticed what seems to be a little bug in the Pages -> Settings -> Functions dashboard. 1. Navigate to Pages -> Settings -> Functions -> Service Bindings 2. Notice that the link for the "Get Started" button points to D1, not Service Bindings (i.e. https://dash.cloudflare.com/[someid]/workers/d1 - the same as the button above it in the D1 section) Bad link aside, does anyone know what the correct link should be?

    https://cdn.discordapp.com/attachments/1108112896627581018/1108112897063780383/image.png▾

    c
    • 2
    • 2
  • Pages with cloudflare for saas, custom vanity domain
    p

    philbookst

    05/16/2023, 10:13 PM
    Is it possible to use cloudflare for saas with pages? I'm struggling with the setup a bit https://developers.cloudflare.com/cloudflare-for-platforms/cloudflare-for-saas/start/getting-started/#step-1--create-fallback-origin-and-cname-target since we don't have access to the ip address, i cannot set the first record i've tried to add a cname on the vanity domain to my fallback origin but i'm getting the following error Error code 522
  • Help with broken DNS
    s

    Scooby

    05/17/2023, 10:34 AM
    Hey folks, I had an issue with a faulty abuse report (which has now been resolved & the flag cleared by support), but I'm having issues with none of our custom domains are working, and I can't delete + recreate one of the pages, any chance you could help out: collabland-wallet-ui.pages.dev a6a84d93840c716e61c73832b95e232f
  • npm - Incorrect or missing password on CF pages
    v

    VerHext

    05/17/2023, 9:31 PM
    Hi, I would like to deploy my new docusaurus web application on CF pages. I have upgraded to Node version v18.14.2, but now I end up in the following npm problem.
    Copy code
    npm ERR! code E401
    Incorrect or missing password.
    w
    • 2
    • 6
  • Failed to upload files error
    h

    Hubchicken

    05/17/2023, 11:51 PM
    I got this error from my recent build when a friend of mine uploaded some files to my github repo, why did this happen?

    https://cdn.discordapp.com/attachments/1108542272905150554/1108542273152622672/image.png▾

    n
    • 2
    • 2
  • help
    r

    Rena?

    05/18/2023, 12:19 AM
    i need help
    c
    • 2
    • 18
  • One repository -> multiple pages projects
    m

    Mubo

    05/18/2023, 9:46 AM
    Hello 👋, I would like to ask if it is possible to create multiple Pages projects that would use the same repository. Basically what we want to achieve is that we want to have multiple Pages projects for one repository and every Pages project would be for different app environment with different branch to build and ENV.
    h
    j
    • 3
    • 5
  • Error when using npm run pages:dev
    g

    Gazreyn

    05/18/2023, 10:09 AM
    Preface: I'm a noob. I've created a new Website/Web App project using
    npm create cloudflare
    . I selected the nuxt template but have also tried with next.js too.
    npm run pages:deploy
    seems to work no problem. However, when I try to use the other available command,
    npm run pages:dev
    I get an error in console and it fails.
    Copy code
    bash
    /home/<username>/code/<project>/node_modules/wrangler/wrangler-dist/cli.js:30632
                throw a;
                ^
    
    Error: write EPIPE
        at afterWriteDispatched (node:internal/stream_base_commons:160:15)
        at writeGeneric (node:internal/stream_base_commons:151:3)
        at Socket._writeGeneric (node:net:930:11)
    Relevant info is that Node version is
    18.16.0
    - This is using WSL2 on Windows 11.
    b
    • 2
    • 3
  • Error 522 when trying to setup a vanity domain via cf for saas
    p

    philbookst

    05/18/2023, 11:21 AM
    Hey I'm trying to setup vanity domains for my pages project, so that customers can use their own domain instead of a subdomain of my domain. I've added a custom domain in the SSL cf for saas panel (screenshot) but accessing this domain gives me a 522 error. How can I fix this? I've added the CNAME on the vanity domain to point to my fallback origin configured in the cf for saas panel
    w
    • 2
    • 9
  • Weird Pages NextJS build error
    m

    Makisuo

    05/18/2023, 6:32 PM
    Cant really make it what is wrong with it, its quite a simple app, with nothing fancy going on aswell. Error logs are attached
    b
    • 2
    • 10
  • Can't deploy a NextJs app
    v

    Viper

    05/18/2023, 7:03 PM
    Hello, I keep getting an error when trying to deploy or build my Nextjs app using the command
    npx @cloudflare/next-on-pages
    The error says that I need to Import trace for requested modules and then It shows some random node models. was wondering if anyone here has the same issue or knows a way to fix it, thank you.
    b
    • 2
    • 2
  • Nuxt (3.5.0) SSG rendered HTML differs on a custom domain.
    a

    Adraas

    05/18/2023, 7:30 PM
    Hi, I'm facing a rather weird issue where I don't really understand where it's coming from but am suspecting it has something to do with Cloudflare. Somehow the website content on my custom domain
    uwvloereruit.nl
    differs from
    uve-website.pages.dev
    . The content served by the custom domain is different (in a visually breaking way) while its is fully server side generated HTML. I have verified this difference by examining both response bodies with Postman. Specific components are somehow rerendered and comments indicating conditional renders are not present in the HTML returned by the custom domain which indicate to me this is not a Nuxt issue? I tried various possible solutions and non of them have worked. - Use the beta build image - Upgrade Nuxt - Reconnect the custom domain - Purge the zone cache Could somebody please take a look, thanks!
    s
    • 2
    • 3
  • Error getting domain name working.
    k

    Kirkpatrick

    05/19/2023, 4:34 AM
    The browser gets an http 522 error, and when I tried to put a "Rule" in I got a Page Rule validation failed Code: 1004 I'm not understanding so many direct addresses to test page: https://cf01-3i7.pages.dev/ https://60f8e9ad.cf01-3i7.pages.dev I hit "retry deployment" and rec url below. https://9a01dbaf.cf01-3i7.pages.dev I found "Known Issues" page at: https://developers.cloudflare.com/pages/platform/known-issues#enabling-access-on-your-pagesdev-domain Step 4 "Go to Settings > Enable access policy." I couldn't find this on my dashboard.
    c
    • 2
    • 17
  • CSS not updated.
    s

    Smr

    05/19/2023, 6:12 PM
    i have my portfolio on Cloudflare pages, i updated my portfolio and it is updated to one url provided by cloudflare(in green) and not being updated on my custom domain(in red), what could be issue. any help`?

    https://cdn.discordapp.com/attachments/1109181818852364320/1109181819028516904/Screenshot_2023-05-19_210957.png▾

    s
    • 2
    • 1
  • "Unable to find pages project" error with GitHub Actions
    s

    Southpaw1496

    05/20/2023, 9:55 AM
    I'm using the [pages action](https://github.com/cloudflare/pages-action) to deploy my site from GitHub Pages. This is the part of the Action that defines the Pages deployment
    Copy code
    yml
    - name: Deploy        uses: https://github.com/cloudflare/pages-action@v1        with:          apiToken: $ {{ secrets.CLOUDFLARE_API_TOKEN }}          accountID: $ {{ secrets.CLOUDFLARE_ACCOUNT_ID }}          projectName: "website"          directory: "dist"          gitHubToken: $ {{ secrets.GITHUB_TOKEN }}
    When I run it, it fails with this error:
    Copy code
    run/act/actions/https---github.com-cloudflare-pages-action@v1/index.js:221582      throw new Error("Unable to find pages project");3            ^45Error: Unable to find pages project6    at /run/act/actions/https---github.com-cloudflare-pages-action@v1/index.js:22158:137    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    The project I am trying to deploy is called "website" so I don't know how to tell what phase of the process is going wrong. The only thing I've thought to try is giving the token read and write permissions instead of just write. Account ID: 09646c990f5cc498559b98c4427677d6
    w
    • 2
    • 2
  • Create multiple Pages projects with a monorepo
    f

    flayks

    05/20/2023, 6:04 PM
    I'm using a pnpm monorepo and it feels impossible to deploy multiple apps/projects from the same repo. Is there a way around it? For some context, I'd like to deploy a Sanity Studio app and my website which is based on SvelteKit. This is something possible with Vercel but I can't figure it out yet on CF Pages 😬

    https://cdn.discordapp.com/attachments/1109542071599124581/1109542071804629032/CleanShot_2023-05-20_at_20.03.262x.jpg▾

    c
    • 2
    • 2
  • Cloudflare Pages build fails when a D1 binding is set
    s

    SuchACharles

    05/20/2023, 7:37 PM
    12:31:37.893 ✨ Upload complete! 12:31:39.701 Success: Assets published! 12:31:41.298 Error: Failed to publish your Function. Got error: Uncaught Error: No such module "opt/buildhome/repo/.vercel/output/static/_worker.js/index.js". imported from "bundledWorker-0.3312669898700358.mjs" A clean Nextjs install will run and successfully build, but I found that when I add a binding to my D1, even though I have no functions folder and not using it, it fails. In my main project I am working on, it relies on D1 for a blog, and that one also fails. Found that when any binding is enabled for D1, build will always fail. Any help on how to remedy this or is this a bug?
    w
    b
    • 3
    • 32
  • D1 database binding is visible, R2 binding is {} empty
    s

    Skye

    05/20/2023, 8:34 PM
    Yes, bindings don't stringify well, looking like
    {}
    is normal
    d
    • 2
    • 3
  • alternative to process.env in cloudflare pages
    s

    sohebrapati

    05/21/2023, 2:35 AM
    Does anyone have a good pattern for using
    createSessionStorage
    in an environment that requires passing in the
    context
    ? Specifically, I'm using cloudflare-pages and have environment variables. Cloudflare doesn't make
    process.env
    available; instead, the environment variables come in through the loader
    context
    . The best I can come up with is wrapping
    createSessionStorage
    in a function that takes a `context`:
    Copy code
    const sessionManager = sessionManagerFor(context)
    const session = sessionManager.getSession(request.headers.get('cookie'))
    …
    return json('stuff', {
      headers: {
        'set-cookie': sessionManager.commitSession,
      }
    })
    Is that the "most Remix-ey" way to do it?
  • connect() function doesn't work
    f

    Fangliding

    05/21/2023, 3:43 AM
    I used the connect() function in my project to connect to the website I hosted on Cloudflare CDN. It was able to work well, but it seems to have had problems since yesterday. The connect() function cannot establish a connection. After testing, I found that the connect function cannot connect to any IP belonging to cloudflare (AS13335), and at the same time, connecting to other websites is ok
    w
    • 2
    • 3
1...56789Latest