olafg
Explore posts from serversCDCloudflare Developers
•Created by Acro on 12/27/2023 in #pages-help
Cloudflare Pages + TurboRepo + PNPM
Hm, interesting, did you also use internal repo packages in Turborepo?
If possible, can you share your wrangler setup / turbo.json /package.json
27 replies
CDCloudflare Developers
•Created by Acro on 12/27/2023 in #pages-help
Cloudflare Pages + TurboRepo + PNPM
@outsideurimagination Did you figure this out?
27 replies
CDCloudflare Developers
•Created by Acro on 12/27/2023 in #pages-help
Cloudflare Pages + TurboRepo + PNPM
Hey. Both the root package.json and the remix package.sjon has pnpm defined under packageManager
27 replies
CDCloudflare Developers
•Created by Acro on 12/27/2023 in #pages-help
Cloudflare Pages + TurboRepo + PNPM
Scripts in package.json
27 replies
CDCloudflare Developers
•Created by Acro on 12/27/2023 in #pages-help
Cloudflare Pages + TurboRepo + PNPM
27 replies
CDCloudflare Developers
•Created by Acro on 12/27/2023 in #pages-help
Cloudflare Pages + TurboRepo + PNPM
yes, locally it works
27 replies
CDCloudflare Developers
•Created by Acro on 12/27/2023 in #pages-help
Cloudflare Pages + TurboRepo + PNPM
and then running it from the repo root with the --filter flag the /functions dir does not get copied
27 replies
CDCloudflare Developers
•Created by Acro on 12/27/2023 in #pages-help
Cloudflare Pages + TurboRepo + PNPM
But the problem is when I upload to cf and try to run the build command from /apps/remix, the CF vm errors out saying that there is no workspace support
27 replies
CDCloudflare Developers
•Created by Acro on 12/27/2023 in #pages-help
Cloudflare Pages + TurboRepo + PNPM
The package setup works locally without issue
27 replies
CDCloudflare Developers
•Created by Acro on 12/27/2023 in #pages-help
Cloudflare Pages + TurboRepo + PNPM
The packages are shared internal
27 replies
CDCloudflare Developers
•Created by Acro on 12/27/2023 in #pages-help
Cloudflare Pages + TurboRepo + PNPM
so it reverts to using npm
27 replies
CDCloudflare Developers
•Created by Acro on 12/27/2023 in #pages-help
Cloudflare Pages + TurboRepo + PNPM
I guess this is probably because it does not find a .pnpm-lock.yaml in the app directory
27 replies
CDCloudflare Developers
•Created by Acro on 12/27/2023 in #pages-help
Cloudflare Pages + TurboRepo + PNPM
As OP comments in option 2, it seems like when trying to build from the remix (apps/*) directory Cloudflare builds with npm instead of pnpm and it doesn't pick up workspaces
27 replies
CDCloudflare Developers
•Created by Acro on 12/27/2023 in #pages-help
Cloudflare Pages + TurboRepo + PNPM
And if you try to build from the root directory using the --filter flag, it builds, but then it is missing the /functions directory which is not copied to bundled in the vite build
27 replies
CDCloudflare Developers
•Created by Acro on 12/27/2023 in #pages-help
Cloudflare Pages + TurboRepo + PNPM
So then you can't have shared repo packages
27 replies
CDCloudflare Developers
•Created by Acro on 12/27/2023 in #pages-help
Cloudflare Pages + TurboRepo + PNPM
Turbo is able to build in the remix directory, but there is some issue on CF where it doesn't support workspaces/workspace packages when you build from the remix directory
27 replies