Deploy Frontity on Now

According to Zeit: "Now is a global deployment network built on top of all existing cloud providers. It makes teams productive by removing servers and configuration, makes serverless application deployment easy."

We strongly recommend this service as it is serverless, cheap, includes CDN, and really easy to set up. __It also supports the cache technique stale-while-revalidate (they name it Serverless Pre-Rendering), a powerful way to improve your website speed.

First of all, you have to develop your project following the steps in the Quick start guide. This deploy is supposed to be made once you have finished and you want to deploy it on production.

These are the instructions to deploy Now on Frontity, once you are ready to deploy your project:

Before deploying

  1. Create this now.json file with your preferred text editor, change the url and save it in your Frontity project.

"alias": "",
"version": 2,
"builds": [
"src": "package.json",
"use": "@frontity/now"
  1. Create an account on Now. You can signup here.

  2. Log in the terminal:

> npx now login

Deploy a test site

Deploy Frontity using this command:

> npx now

Now will assign you a domain (something like that works exactly like your real domain and allows you to check and make sure that everything is ok.

Deploy a production site

You need to add a CNAME of to in your domain DNS settings.

If you don't know how to do this, contact your domain provider (GoDaddy, CloudFlare, etc)

Then, deploy Frontity using this command:

> npx now --target production

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

Still have questions? Ask the community! We are here to help ๐Ÿ˜Š