crossbeau
crossbeau
CDCloudflare Developers
Created by crossbeau on 1/13/2024 in #workers-help
is there a way to check compatibility flags and dates on an older manually created CF Worker?
Seen title
3 replies
CDCloudflare Developers
Created by crossbeau on 11/30/2023 in #workers-help
Cloudflare Service bindings with nuxt
I'm working on an SSR Nuxt app that is going to be deployed to cloudflare and I'm having a great deal of trouble accessing the cloudflare bindings (specifically the service bindings). I have a nitro plugin where I'm trying to access my service binding: export default defineNitroPlugin((nitroApp) => { nitroApp.hooks.hook('render:html', async (html, { event }) => { console.log(event); const $fetch = get(event, 'context.cloudflare.env.Self'); if (!isUndefined($fetch)) { globalThis.$fetch = $fetch; } }); }); For whatever reason cloudflare is not defined. When I look at this article: https://developers.cloudflare.com/pages/framework-guides/deploy-a-nuxt-site/ it infers that you can only access the bindings in middleware or server routes. Is it possible to access the bindings in nuxt pages, plugins or nitro plugins? I'm having trouble understanding how it would be useful for me unless I can have access to the bindings in those contexts.
1 replies
CDCloudflare Developers
Created by crossbeau on 11/29/2023 in #workers-help
cloudflare worker requesting against origin with cloudflare origin certificate
I am looking to use a worker to host SSR nuxt JS and i found that my fetch requests end up getting a 522 on strict certificates. It feels as though the worker does not pull an appropriate CF Cert to use to request my managed backend. Am i missing something? I have authenticated origin pulls enabled on the host i am requesting on.
1 replies
CDCloudflare Developers
Created by crossbeau on 9/27/2023 in #workers-help
CORS with SSR Nuxt on CF worker
We are running Nitro Server on cloudflare workers and want to know how to allow cors on our client when our Backend APIs are on a seperate subdomain
2 replies
CDCloudflare Developers
Created by crossbeau on 9/24/2023 in #workers-help
cloudflare worker route triggers
Is it possible to trigger a worker inversely? So for example.. trigger on all routes except for /api*
6 replies
CDCloudflare Developers
Created by crossbeau on 9/14/2023 in #pages-help
Configuring Exclude routes for NitroServer on NuxtJS
I am currently trying to add an "exclude":["/api/] to my auto generated _routes.json but I cant quite seem to get my nuxt.config.ts dialed in and not sure what I am doing wrong. based on the documentation, I added a ``` nitro: { cloudflare: { pages: { routes: { "exclude": ["/api/"] } } }, preset: 'cloudflare-pages', minify: true, rollupConfig: { plugins: [ replace({ 'global.GENTLY': false, }), ], }, }, ``` and it does not make any sort of change to my _routes.json
1 replies
CDCloudflare Developers
Created by crossbeau on 8/31/2023 in #pages-help
Creating pages project with Terraform, can you set build system version somehow?
https://developers.cloudflare.com/pages/platform/language-support-and-tools/ I am ltrying to figure out if i can set to version 1 somehow
1 replies
CDCloudflare Developers
Created by crossbeau on 8/17/2023 in #pages-help
Nuxt JS on Pages environment variables not working
I have correctly set all my env vars, my code seems accurate as far as i can tell yet no matter what i do pages will not use my variables
6 replies
CDCloudflare Developers
Created by crossbeau on 8/14/2023 in #general-help
split DNS with Zero Trust Access Apps
Scenario: I want to run a single page web app on cloudflare pages that makes a api request out to a backend on say… service.api.example.com but the spa is on service-dashboard.example.com the SPA will also be using Zero Trust rules. How (if even possible) can i configure it so a valid user accessing the spa is also able to interact with the UI to ineract with the apis I attempted to configure this and it seemed to trigger a CORS rule which invalidated the token. I created an access app for each the backend and the frontend.. i did find i could use a cloudflare loadbalancer and make each an origin. But that feels overly complicated, and would also break preview builds
2 replies
CDCloudflare Developers
Created by crossbeau on 8/12/2023 in #general-help
argo tunnels
If i am to build out an argo tunnel and use it as an origin in a cloudflare loadbalancer, can i lock it down so that ONLY cloudflare loadbalancer is the only service able to interact with. (I would he using a cname on it) so in essence id also want to lockdown that cname? Would I use a zone lockdown with CF IP ranges?
1 replies
CDCloudflare Developers
Created by crossbeau on 8/11/2023 in #pages-help
Issues with NuxtJS and Nitro Server with Cloudflare Pages
9 replies