https://github.com/frontity/now-builder
A Frontity builder for the Vercel hosting
https://github.com/frontity/now-builder
builder frontity now now-builder vercel zeit
Last synced: about 1 month ago
JSON representation
A Frontity builder for the Vercel hosting
- Host: GitHub
- URL: https://github.com/frontity/now-builder
- Owner: frontity
- License: apache-2.0
- Created: 2019-07-27T19:01:57.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-08T23:47:32.000Z (over 2 years ago)
- Last Synced: 2024-10-06T23:06:54.140Z (7 months ago)
- Topics: builder, frontity, now, now-builder, vercel, zeit
- Language: TypeScript
- Homepage: https://docs.frontity.org/installation-and-deploy/deploy-on-now
- Size: 252 KB
- Stars: 10
- Watchers: 3
- Forks: 10
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Frontity - Now builder
Use this builder to deploy a [Frontity](https://frontity.org) project in the Zeit Now hosting.
## Before deploying
1. Create this `now.json` file in your project and change the site url:
```json
{
"alias": "www.your-site.com",
"version": 2,
"builds": [
{
"src": "package.json",
"use": "@frontity/now"
}
]
}
```2. Create an account on Now. You can [signup here](https://zeit.co/signup).
3. Log in the terminal:
```bash
> npx now login
```## Deploy a test site
Deploy Frontity using this command:
```bash
> npx now
```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](https://zeit.co/docs/v2/custom-domains/#option-2:-using-external-nameservers) of `www.your-site.com` to `alias.zeit.co` in your domain DNS settings.
Then, deploy Frontity using this command:
```bash
> npx now --target production
```That will createa a deploy and assign it to your real site url.