Spunkie
Explore posts from serversCDCloudflare Developers
•Created by Spunkie on 12/14/2023 in #pages-help
Nuxt `npx nuxi generate` sometimes builds to `.output/public` and other times to `.dist`?
I'm using the latest nuxt on cloudflare pages but my builds are failing sometimes because of the differing output dir. I don't really understand what is causing the difference in behavior.
I'm following the nuxt docs on deployment so on CF pages I'm running
npx nuxi generate
and looking for the build dir of .output/public
. I've also tried with node 16 and 18 but it doesn't fix the issue.
Some branches are building, while others are not on CF. If I clone the branches with failed builds and run npx nuxi generate
locally it builds to the correct .output/public
dir.
CF pages:
Building same commit locally:
ref: https://nuxt.com/docs/getting-started/deployment#crawl-based-pre-rendering2 replies
CDCloudflare Developers
•Created by Spunkie on 2/14/2023 in #workers-help
Page breaks when fetched/returned by worker
I have this public share link: https://view.monday.com/3776000595-36cfd13f4d0b049a330a3952bdae0ff9
and this bit of worker code I copied from the examples:
If I go directly to the link in my browser the page loads like I expect but if I instead fetch the same page with a worker and return it, then the page is broken.
Anyone have any idea what I can do to get this page working?
23 replies
CDCloudflare Developers
•Created by Spunkie on 2/9/2023 in #workers-help
Can I edit html of an iframe if I CNAME it?
I have an embedded iframe from a domain I don't control and I need to replace a link in the iframes content with another link.
Is this something I can do with a CNAME to the iframe + a CF worker?
7 replies