1.3.0 • Published 2 years ago

@whale-agency/vercel v1.3.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
2 years ago

Frontity - Vercel builder

Use this builder to deploy a Frontity project in the Vercel. This package is a fork of @frontity/now

Before deploying

  1. Create this vercel.json file in your project and change the site url:
{
	"version": 2,
	"builds": [
		{
			"src": "package.json",
			"use": "@whale-agency/vercel"
		}
	]
}
  1. Create an account on Vercel. You can signup here.

  2. Log in the terminal:

> npx vercel login

Deploy a test site

Deploy Frontity using this command:

> npx vercel

That will give you a unique URL for that deploy. Check that everything is ok.

Deploy a production site

You need to add a CNAME of www.your-site.com to cname.vercel-dns.com in your domain DNS settings.

Then, deploy Frontity using this command:

> npx vercel --prod

That will create a deploy and assign it to your real site url.