https://discord.cloudflare.com logo
Join Discord
Powered by
# pages-discussions
  • w

    Walshy | Pages

    05/28/2023, 3:22 PM
    try to disable orange cloud
  • w

    Walshy | Pages

    05/28/2023, 3:23 PM
    my bet is the custom domain caching is taking over
  • w

    Walshy | Pages

    05/28/2023, 3:23 PM
    i love o2o :^)
  • d

    dave

    05/28/2023, 3:23 PM
    hmm, I thought I lost some features by doing that
  • d

    dave

    05/28/2023, 3:23 PM
    right, won't I lose header transforms and such?
  • w

    Walshy | Pages

    05/28/2023, 3:23 PM
    yeah you'd lose all zone features
  • d

    dave

    05/28/2023, 3:23 PM
    ah yea
  • d

    dave

    05/28/2023, 3:29 PM
    cool yeah I just did a Transform Header rule instead
  • d

    dave

    05/28/2023, 3:30 PM
    question, why does the main SPA html page have caching disabled completely?
  • d

    dave

    05/28/2023, 3:31 PM
    Copy code
    < cache-control: public, max-age=0, must-revalidate
  • n

    nikivi

    05/28/2023, 4:32 PM

    https://cdn.discordapp.com/attachments/789155108529111069/1112418239994150942/image.png▾

  • n

    nikivi

    05/28/2023, 4:32 PM
    im confused by this error in pages
  • n

    nikivi

    05/28/2023, 4:33 PM
    im just doing this stuff in my front end code

    https://cdn.discordapp.com/attachments/789155108529111069/1112418373301698670/image.png▾

  • n

    nikivi

    05/28/2023, 4:33 PM
    why does this stuff run on server
  • n

    nikivi

    05/28/2023, 4:36 PM
    Copy code
    const showPaywall = computed(() => {
      if (typeof window === 'undefined') {
        return
      }
  • n

    nikivi

    05/28/2023, 4:36 PM
    i suppose i have to do this
  • t

    Tom Sherman

    05/28/2023, 4:42 PM
    looks like you have some build-time static rendering going on, are you using Nuxt?
  • n

    nikivi

    05/28/2023, 4:43 PM
    https://vitepress.dev
  • t

    Tom Sherman

    05/28/2023, 4:44 PM
    makes sense, vitepress is running your code to generate HTML at build time
  • t

    Tom Sherman

    05/28/2023, 4:45 PM
    you can use this: https://vitepress.dev/guide/ssr-compat#clientonly
  • r

    Richard (richicoder1)

    05/28/2023, 7:50 PM
    Is it possible/easy to create a staging environment with Pages? E.g. basically
    main
    except using preview or a different set of Env vars?
  • s

    simpson

    05/29/2023, 12:02 AM
    It is pretty much baked in, you can set all your variables in the settings of the project for production or any other branch, it will build every commit from every branch of you want it to
  • t

    Tom Sherman

    05/29/2023, 12:05 AM
    Well there are some things that don't lend themselves too well to a specific staging environment IMO Eg. Environment vars can only be set for production, or preview environments. You can't designate a specific preview as "staging" and have different env vars
  • t

    Tom Sherman

    05/29/2023, 12:06 AM
    Same with compatibility flags and bindings
  • t

    Tom Sherman

    05/29/2023, 12:06 AM
    So you might prefer to create another pages site and use it's production branch as "staging"
  • r

    Richard (richicoder1)

    05/29/2023, 12:46 AM
    Yah, that's the rub. Would like it to be independent of preview and prod, but I might just have it be the same as preview for now
  • Why would `process.env.EXAMPLE` be
    b

    Ben-xD

    12/17/2023, 1:02 AM
    Ohh, > process.env. doesn't exist in Cloudflare workers I just need to use it directly, like
    EXAMPLE
    . Unconventional
    k
    j
    • 3
    • 12
  • Does anyone know why file hashes are
    b

    Ben-xD

    12/17/2023, 4:44 PM
    Oh weird, its happening way more frequently for firefox: It still happens on chrome, but much less frequently (left chrome, right firefox)
    cvf-2x
    c
    • 2
    • 6
  • Hello I have an issue setting up
    h

    hamidmuslih

    01/05/2024, 8:17 PM
    Sorry for the tag, @Chaika I see you have been helping many others with the same issue. please have a look at your convenience. 🙏🏻 - pages URL (working): https://forest-landing.pages.dev - custom domain (not working): https://forest.chainsafe.io/
    c
    • 2
    • 11
  • Hi Team, pages build are not getting
    b

    Bhanu Prakash

    01/12/2024, 12:38 PM
    This worked before, first happend on 11:43AM January 9, 2024 IST
    c
    • 2
    • 2