mw10013
Explore posts from serversCDCloudflare Developers
•Created by mw10013 on 6/7/2024 in #pages-help
How to troubleshoot deploy error: `Script startup exceeded CPU time limit`
I'm seeing this again twice. I will wait and see if I can get it to deploy with a new trivial commit later. Would appreciate any guidance on how to troubleshoot this further.
3 replies
CDCloudflare Developers
•Created by mw10013 on 6/7/2024 in #pages-help
How to troubleshoot deploy error: `Script startup exceeded CPU time limit`
I just did another deploy with a fresh commit and now it seems to have gone through.
3 replies
CDCloudflare Developers
•Created by Acro on 12/27/2023 in #pages-help
Cloudflare Pages + TurboRepo + PNPM
You mentioned that cloudflare uses npm instead of pnpm when building your remix folder. What does your build configuration look like in cloudflare (see my screenshot above). I explicitly tell it to use
pnpm build
. Also, root package.json contains the following so that cloudflare uses a specific pnpm version.
27 replies
CDCloudflare Developers
•Created by Acro on 12/27/2023 in #pages-help
Cloudflare Pages + TurboRepo + PNPM
Can you share what your build command looks like from the package.json? Are you able to ‘pnpm build’ and ‘pnpm start’ locally in the remix folder?
27 replies
CDCloudflare Developers
•Created by Acro on 12/27/2023 in #pages-help
Cloudflare Pages + TurboRepo + PNPM
https://turbo.build/repo/docs/handbook/sharing-code/internal-packages
Are your shared repo packages internal or external?
I have an shared internal package that I configured per the turbo repo internal packages doc. Seems that when I build remix, vite will bundle in whatever it needs from the shared internal package.
27 replies
CDCloudflare Developers
•Created by Acro on 12/27/2023 in #pages-help
Cloudflare Pages + TurboRepo + PNPM
27 replies
CDCloudflare Developers
•Created by mw10013 on 3/24/2024 in #d1-database
GitHub - mw10013/remix-auth-totp-cloudfl...
It's not in the cloudflare docs. Just an approach/convention that I'm using. Found the docs for specifying pages bindings in wrangler.toml to be a little confusing.
5 replies
CDCloudflare Developers
•Created by mw10013 on 3/24/2024 in #d1-database
GitHub - mw10013/remix-auth-totp-cloudfl...
Yes, the
database_id
for the local environment can be anything so can just leave it as "intentionally-dummy-id-leave-as-is" if you copy/paste from the wrangler.toml
. The approach is to try to completely separate the local, preview, and production environments in wrangler.toml
. The local environment does not have a d1 database in cloudflare's cloud. The preview and production environments do so they need real database_id's in the wrangler.tom.5 replies