outsideurimagination
outsideurimagination
Explore posts from servers
CDCloudflare Developers
Created by Acro on 12/27/2023 in #pages-help
Cloudflare Pages + TurboRepo + PNPM
had to use wrangler to deploy instead of pages integrated method
27 replies
CDCloudflare Developers
Created by ryan0x44 on 4/8/2024 in #workers-help
Vitest type error in Github Actions and eslint
I'm getting the same locally. "@cloudflare/vitest-pool-workers" is in the tsconfig types and it declares this package https://github.com/cloudflare/workers-sdk/blob/main/packages/vitest-pool-workers/types/cloudflare-test.d.ts so I'm unsure what's going on. Using bun for reference
2 replies
CDCloudflare Developers
Created by Acro on 12/27/2023 in #pages-help
Cloudflare Pages + TurboRepo + PNPM
I'm encountering similar issues. If I build from the root, cloudflare pages doesn't find my project's wrangler.toml. So we have to set the root as apps/app. Now I have issues with it not detecting the root package.json settings like packageManager or its dependencies. Ok, I can mostly overcome that by explicitly declaring them in the app's package.json (can probably use https://github.com/microsoft/package-inherit to make it cleaner). Now I have an issue where it's not reading the env vars even though they are clearly there in the build (my build command migrates the db, which is trying to connect to the local version of the URL "http://127.0.0.1:8080/v2/pipeline" even though the env var is logged before. I don't think this will be the only thing I encounter. Anyone gotten a good setup with pages + turborepo + non-npm package manager?
27 replies