@baalspots/frontity-builder
v3.6.0
Published
A custom Frontity builder for deploying to Vercel
Readme
Frontity Builder
Deploy your Frontity project to Vercel with Node 20.
Before deploying
- Include the following settings in your projects
vercel.jsonfile:
{
"builds": [
{
"src": "package.json",
"use": "@baalspots/frontity-builder"
}
],
"buildCommand": "node -v && npx frontity build && node -v",
"devCommand": "npx frontity dev",
"framework": null,
"installCommand": "npm i",
"outputDirectory": "build"
}Update your Frontity projects local dev environment to use Node 20.
Update
package.jsonat the root of your project to use the following Node engine and scripts:
"engines": {
"node": "20.x"
},
"scripts": {
"dev": "npx frontity dev",
"build": "node -v && npx frontity build && node -v",
"serve": "npx frontity serve"
},Remove all
package-lock.jsonfiles andnode-modulesfolders in your Frontity project.Remove
package-lock.jsonfrom your projects.gitignorefileRun
npm iat the root of your project.
