How to publish on Cloudflare Pages?

Hi, as a designer, I would like to publish Plasmic websites to Cloudflare pages. I have created the Github repo and published it to jamitik.plasmic.site but can not deploy it in Cloudflare pages.
I am a non-coder and have no experience using CLI or something. Please help.

I think you should be able to log into Cloudflare Pages and point it at your GitHub repo.

If that doesn’t work, can you share more details on the issue you’re seeing?

I added the Github repo. Here is the build log.

2022-06-09T05:53:33.40864Z	Cloning repository...
2022-06-09T05:53:34.232419Z	From <https://github.com/HiShahadat/Jamitik>
2022-06-09T05:53:34.233046Z	 * branch            f8b6d9205f43c73aa15545785088a0829e851edb -> FETCH_HEAD
2022-06-09T05:53:34.233252Z	
2022-06-09T05:53:34.279094Z	HEAD is now at f8b6d92 [plasmic] Sync project Jamitik
2022-06-09T05:53:34.279706Z	
2022-06-09T05:53:34.415234Z	
2022-06-09T05:53:34.43885Z	Success: Finished cloning repository files
2022-06-09T05:53:35.052825Z	Installing dependencies
2022-06-09T05:53:35.064889Z	Python version set to 2.7
2022-06-09T05:53:39.007632Z	v12.18.0 is already installed.
2022-06-09T05:53:40.415892Z	Now using node v12.18.0 (npm v6.14.4)
2022-06-09T05:53:40.76965Z	Started restoring cached build plugins
2022-06-09T05:53:40.790681Z	Finished restoring cached build plugins
2022-06-09T05:53:41.515444Z	Attempting ruby version 2.7.1, read from environment
2022-06-09T05:53:47.510228Z	Using ruby version 2.7.1
2022-06-09T05:53:47.880302Z	Using PHP version 5.6
2022-06-09T05:53:48.069198Z	5.2 is already installed.
2022-06-09T05:53:48.09806Z	Using Swift version 5.2
2022-06-09T05:53:48.099357Z	Started restoring cached node modules
2022-06-09T05:53:48.120375Z	Finished restoring cached node modules
2022-06-09T05:53:48.363982Z	Installing NPM modules using NPM version 6.14.4
2022-06-09T05:53:49.323716Z	npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but package-lock.json was generated for lockfileVersion@2. I'll try to do my best with it!
2022-06-09T05:54:19.455794Z	
2022-06-09T05:54:19.456233Z	> msgpackr-extract@2.0.2 install /opt/buildhome/repo/node_modules/msgpackr-extract
2022-06-09T05:54:19.456517Z	> node-gyp-build-optional-packages
2022-06-09T05:54:19.456729Z	
2022-06-09T05:54:19.667068Z	
2022-06-09T05:54:19.667379Z	> @parcel/watcher@2.0.5 install /opt/buildhome/repo/node_modules/@parcel/watcher
2022-06-09T05:54:19.667545Z	> node-gyp-build
2022-06-09T05:54:19.667663Z	
2022-06-09T05:54:20.01966Z	
2022-06-09T05:54:20.020003Z	> lmdb@2.2.4 install /opt/buildhome/repo/node_modules/@parcel/cache/node_modules/lmdb
2022-06-09T05:54:20.020161Z	> node-gyp-build
2022-06-09T05:54:20.020279Z	
2022-06-09T05:54:20.209497Z	
2022-06-09T05:54:20.209873Z	> lmdb@2.3.10 install /opt/buildhome/repo/node_modules/lmdb
2022-06-09T05:54:20.210038Z	> node-gyp-build-optional-packages
2022-06-09T05:54:20.210178Z	
2022-06-09T05:54:20.443289Z	
2022-06-09T05:54:20.443815Z	> sharp@0.30.5 install /opt/buildhome/repo/node_modules/sharp
2022-06-09T05:54:20.444162Z	> (node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy)
2022-06-09T05:54:20.444448Z	
2022-06-09T05:54:20.750834Z	sharp: Downloading <https://github.com/lovell/sharp-libvips/releases/download/v8.12.2/libvips-8.12.2-linux-x64.tar.br>
2022-06-09T05:54:21.448059Z	sharp: Integrity check passed for linux-x64
2022-06-09T05:54:22.24354Z	
2022-06-09T05:54:22.24417Z	> core-js@2.6.12 postinstall /opt/buildhome/repo/node_modules/babel-runtime/node_modules/core-js
2022-06-09T05:54:22.24468Z	> node -e "try{require('./postinstall')}catch(e){}"
2022-06-09T05:54:22.244858Z	
2022-06-09T05:54:22.335874Z	[96mThank you for using core-js ([94m <https://github.com/zloirock/core-js> [96m) for polyfilling JavaScript standard library![0m
2022-06-09T05:54:22.336199Z	
2022-06-09T05:54:22.336339Z	[96mThe project needs your help! Please consider supporting of core-js on Open Collective or Patreon: [0m
2022-06-09T05:54:22.336558Z	[96m>[94m <https://opencollective.com/core-js> [0m
2022-06-09T05:54:22.336707Z	[96m>[94m <https://www.patreon.com/zloirock> [0m
2022-06-09T05:54:22.336903Z	
2022-06-09T05:54:22.337063Z	[96mAlso, the author of core-js ([94m <https://github.com/zloirock> [96m) is looking for a good job -)[0m
2022-06-09T05:54:22.337181Z	
2022-06-09T05:54:22.378491Z	
2022-06-09T05:54:22.379186Z	> core-js@3.22.7 postinstall /opt/buildhome/repo/node_modules/core-js
2022-06-09T05:54:22.37961Z	> node -e "try{require('./postinstall')}catch(e){}"
2022-06-09T05:54:22.379899Z	
2022-06-09T05:54:22.463979Z	[96mThank you for using core-js ([94m <https://github.com/zloirock/core-js> [96m) for polyfilling JavaScript standard library![0m
2022-06-09T05:54:22.464302Z	
2022-06-09T05:54:22.464484Z	[96mThe project needs your help! Please consider supporting of core-js:[0m
2022-06-09T05:54:22.464619Z	[96m>[94m <https://opencollective.com/core-js> [0m
2022-06-09T05:54:22.464758Z	[96m>[94m <https://patreon.com/zloirock> [0m
2022-06-09T05:54:22.464909Z	[96m>[94m bitcoin: bc1qlea7544qtsmj2rayg0lthvza9fau63ux0fstcz [0m
2022-06-09T05:54:22.465032Z	
2022-06-09T05:54:22.465144Z	[96mAlso, the author of core-js ([94m <https://github.com/zloirock> [96m) is looking for a good job -)[0m
2022-06-09T05:54:22.465257Z	
2022-06-09T05:54:22.474486Z	
2022-06-09T05:54:22.474745Z	> core-js-pure@3.22.7 postinstall /opt/buildhome/repo/node_modules/core-js-pure
2022-06-09T05:54:22.474906Z	> node -e "try{require('./postinstall')}catch(e){}"
2022-06-09T05:54:22.475037Z	
2022-06-09T05:54:22.918642Z	
2022-06-09T05:54:22.918983Z	> es5-ext@0.10.61 postinstall /opt/buildhome/repo/node_modules/es5-ext
2022-06-09T05:54:22.919137Z	>  node -e "try{require('./_postinstall')}catch(e){}" || exit 0
2022-06-09T05:54:22.919268Z	
2022-06-09T05:54:23.096707Z	
2022-06-09T05:54:23.097038Z	> gatsby-telemetry@3.15.0 postinstall /opt/buildhome/repo/node_modules/gatsby-telemetry
2022-06-09T05:54:23.097194Z	> node src/postinstall.js || true
2022-06-09T05:54:23.097319Z	
2022-06-09T05:54:23.217746Z	
2022-06-09T05:54:23.218116Z	> gatsby-cli@4.15.0 postinstall /opt/buildhome/repo/node_modules/gatsby/node_modules/gatsby-cli
2022-06-09T05:54:23.21837Z	> node scripts/postinstall.js
2022-06-09T05:54:23.218557Z	
2022-06-09T05:54:23.319497Z	
2022-06-09T05:54:23.319836Z	> gatsby@4.15.0 postinstall /opt/buildhome/repo/node_modules/gatsby
2022-06-09T05:54:23.319995Z	> node scripts/postinstall.js
2022-06-09T05:54:23.320117Z	
2022-06-09T05:54:24.96757Z	npm WARN optional SKIPPING OPTIONAL DEPENDENCY: lmdb-darwin-x64@2.3.10 (node_modules/lmdb-darwin-x64):
2022-06-09T05:54:24.967911Z	npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for lmdb-darwin-x64@2.3.10: wanted {"os":"darwin","arch":"x64"} (current: {"os":"linux","arch":"x64"})
2022-06-09T05:54:24.968088Z	npm WARN optional SKIPPING OPTIONAL DEPENDENCY: lmdb-win32-x64@2.3.10 (node_modules/lmdb-win32-x64):
2022-06-09T05:54:24.96825Z	npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for lmdb-win32-x64@2.3.10: wanted {"os":"win32","arch":"x64"} (current: {"os":"linux","arch":"x64"})
2022-06-09T05:54:24.968418Z	npm WARN optional SKIPPING OPTIONAL DEPENDENCY: lmdb-linux-arm@2.3.10 (node_modules/lmdb-linux-arm):
2022-06-09T05:54:24.968543Z	npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for lmdb-linux-arm@2.3.10: wanted {"os":"linux","arch":"arm"} (current: {"os":"linux","arch":"x64"})
2022-06-09T05:54:24.968677Z	npm WARN optional SKIPPING OPTIONAL DEPENDENCY: lmdb-linux-arm64@2.3.10 (node_modules/lmdb-linux-arm64):
2022-06-09T05:54:24.968797Z	npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for lmdb-linux-arm64@2.3.10: wanted {"os":"linux","arch":"arm64"} (current: {"os":"linux","arch":"x64"})
2022-06-09T05:54:24.969023Z	npm WARN optional SKIPPING OPTIONAL DEPENDENCY: lmdb-darwin-arm64@2.3.10 (node_modules/lmdb-darwin-arm64):
2022-06-09T05:54:24.969303Z	npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for lmdb-darwin-arm64@2.3.10: wanted {"os":"darwin","arch":"arm64"} (current: {"os":"linux","arch":"x64"})
2022-06-09T05:54:24.969513Z	npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules/fsevents):
2022-06-09T05:54:24.969653Z	npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
2022-06-09T05:54:24.969792Z	npm WARN optional 
SKIPPING OPTIONAL DEPENDENCY: @msgpackr-extract/msgpackr-extract-win32-x64@2.0.2 (node_modules/@msgpackr-extract/msgpackr-extract-win32-x64):
2022-06-09T05:54:24.969905Z	npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @msgpackr-extract/msgpackr-extract-win32-x64@2.0.2: wanted {"os":"win32","arch":"x64"} (current: {"os":"linux","arch":"x64"})
2022-06-09T05:54:24.970151Z	npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @msgpackr-extract/msgpackr-extract-linux-arm64@2.0.2 (node_modules/@msgpackr-extract/msgpackr-extract-linux-arm64):
2022-06-09T05:54:24.970329Z	npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @msgpackr-extract/msgpackr-extract-linux-arm64@2.0.2: wanted {"os":"linux","arch":"arm64"} (current: {"os":"linux","arch":"x64"})
2022-06-09T05:54:24.970466Z	npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @msgpackr-extract/msgpackr-extract-darwin-x64@2.0.2 (node_modules/@msgpackr-extract/msgpackr-extract-darwin-x64):
2022-06-09T05:54:24.970637Z	npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @msgpackr-extract/msgpackr-extract-darwin-x64@2.0.2: wanted {"os":"darwin","arch":"x64"} (current: {"os":"linux","arch":"x64"})
2022-06-09T05:54:24.97077Z	npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @msgpackr-extract/msgpackr-extract-linux-arm@2.0.2 (node_modules/@msgpackr-extract/msgpackr-extract-linux-arm):
2022-06-09T05:54:24.970923Z	npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @msgpackr-extract/msgpackr-extract-linux-arm@2.0.2: wanted {"os":"linux","arch":"arm"} (current: {"os":"linux","arch":"x64"})
2022-06-09T05:54:24.97105Z	npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @msgpackr-extract/msgpackr-extract-darwin-arm64@2.0.2 (node_modules/@msgpackr-extract/msgpackr-extract-darwin-arm64):
2022-06-09T05:54:24.971168Z	npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @msgpackr-extract/msgpackr-extract-darwin-arm64@2.0.2: wanted {"os":"darwin","arch":"arm64"} (current: {"os":"linux","arch":"x64"})
2022-06-09T05:54:24.971283Z	
2022-06-09T05:54:24.976009Z	added 1660 packages from 1112 contributors and audited 1672 packages in 35.703s
2022-06-09T05:54:26.129818Z	
2022-06-09T05:54:26.130255Z	222 packages are looking for funding
2022-06-09T05:54:26.130465Z	  run `npm fund` for details
2022-06-09T05:54:26.13064Z	
2022-06-09T05:54:26.131067Z	found 8 vulnerabilities (4 moderate, 4 high)
2022-06-09T05:54:26.131268Z	  run `npm audit fix` to fix them, or `npm audit` for details
2022-06-09T05:54:26.160712Z	NPM modules installed
2022-06-09T05:54:26.540789Z	Installing Hugo 0.54.0
2022-06-09T05:54:27.259665Z	Hugo Static Site Generator v0.54.0-B1A82C61A/extended linux/amd64 BuildDate: 2019-02-01T10:04:38Z
2022-06-09T05:54:27.264597Z	Started restoring cached go cache
2022-06-09T05:54:27.290087Z	Finished restoring cached go cache
2022-06-09T05:54:27.461845Z	go version go1.14.4 linux/amd64
2022-06-09T05:54:27.48406Z	go version go1.14.4 linux/amd64
2022-06-09T05:54:27.488742Z	Installing missing commands
2022-06-09T05:54:27.48902Z	Verify run directory
2022-06-09T05:54:27.489174Z	Executing user command: gatsby build
2022-06-09T05:54:27.947973Z	tput: unknown terminal "unknown"
2022-06-09T05:54:27.950193Z	╔════════════════════════════════════════════════════════════════════════╗
2022-06-09T05:54:27.950473Z	β•‘                                                                        β•‘
2022-06-09T05:54:27.950617Z	β•‘   Gatsby collects anonymous usage analytics                            β•‘
2022-06-09T05:54:27.950734Z	β•‘   to help improve Gatsby for all users.                                β•‘
2022-06-09T05:54:27.950874Z	β•‘                                                                        β•‘
2022-06-09T05:54:27.950999Z	β•‘   If you'd like to opt-out, you can use `gatsby telemetry --disable`   β•‘
2022-06-09T05:54:27.951111Z	β•‘   To learn more, checkout <https://gatsby.dev/telemetry>                 β•‘
2022-06-09T05:54:27.95122Z	β•‘                                                                        β•‘
2022-06-09T05:54:27.951331Z	β•šβ•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•
2022-06-09T05:54:28.763744Z	
2022-06-09T05:54:28.764147Z	 ERROR
2022-06-09T05:54:28.76436Z	
2022-06-09T05:54:28.764553Z	Gatsby requires Node.js 14.15.0 or higher (you have v12.18.0).
2022-06-09T05:54:28.764724Z	Upgrade Node to the latest stable release: <https://gatsby.dev/upgrading-node-js>
2022-06-09T05:54:28.764894Z	
2022-06-09T05:54:28.765083Z	
2022-06-09T05:54:28.829031Z	Failed: build command exited with code: 1
2022-06-09T05:54:29.606414Z	Failed: an internal error occurred

I guess, Gatsby needs latest version of Nodejs. How to do it?

It sounds like you’ll need a way to configure your Cloudflare Pages to use a more recent Nodejs version - do you see a way to do that from within their UI? (I’m not familiar with it personally)

Hey you can make use of environment variables to build your site, you can provide custom environment variable named NODE_VERSION and it’s value as β€˜14.15.0’ by going to Account Home > Pages > your Pages project > Settings > Environment variables.

1 Like