NastykSwED
NastykSwED
CDCloudflare Developers
Created by NastykSwED on 4/14/2024 in #general-help
React SPA + Axios with CF Challenge
No description
5 replies
CDCloudflare Developers
Created by NastykSwED on 9/17/2023 in #pages-help
React App with Vite, Github Actions and Wrangler
Hi guys, a question when using the cf cli, in my worflow of a github action for the deploy I have to define the environment variables that I use in my project, this because Vite resolves those import.meta.env vars at compile time and literally replaces them with the values, right?
1 replies
CDCloudflare Developers
Created by NastykSwED on 9/6/2023 in #pages-help
Cloudflare pages-actions and monorepo nx
Hi guys, what would be the best way to deploy multiple apps with the actions of cloudflare pages? I have a monorepo with nx and I have several apps that are deployed to cloudflare. In the documentation it says the steps to follow for a project. If anyone has an example of a monorepo with this workflow I would appreciate it.
3 replies
CDCloudflare Developers
Created by NastykSwED on 7/24/2023 in #general-help
Next.config rewrites
5 replies
CDCloudflare Developers
Created by NastykSwED on 6/30/2023 in #pages-help
.npmrc file and cloudflare pages
Hi guys I have a question when using npm private packages and then deploying to cloudflare pages. In my project I have the two files: .npmrc and .npmrc.pages. In the .npmrc config I have this record: //registry.npmjs.org/:_authToken=$NPM_TOKEN; And in the .npmrc.pages: //registry.npmjs.org/:_authToken=${NPM_TOKEN}. In local development everything works correctly but when I try to deploy to pages it tells me that the private packages do not exist. In the config of my cloudflare project I have a env which is NPM_CONFIG_USERCONFIG = /opt/buildhome/repo/.npmrc.pages
15 replies