https://github.com/playerx/cf-pnpm
Cloudflare pages deployment with pnpm
https://github.com/playerx/cf-pnpm
Last synced: about 1 year ago
JSON representation
Cloudflare pages deployment with pnpm
- Host: GitHub
- URL: https://github.com/playerx/cf-pnpm
- Owner: playerx
- Created: 2023-01-10T12:41:57.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-01-10T13:31:43.000Z (over 3 years ago)
- Last Synced: 2025-03-27T06:34:39.573Z (about 1 year ago)
- Language: CSS
- Homepage: https://cf-pnpm.pages.dev
- Size: 17.6 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Cloudflare Pages with PNPM
1. Set environment variable to skip the npm install phase:
`NPM_FLAGS = --version`
2. Set environment variable to use node.js v16 (CF Pages pipeline use v12 by default)
`NODE_VERSION = 16`
3. Set build command to (so pnpm’s store is cached too):
`npx pnpm i --store=node_modules/.pnpm-store && npm run build`
[Reference](https://community.cloudflare.com/t/add-pnpm-to-pre-installed-cloudflare-pages-tools/288514/5)