Skip to content

Commit

Permalink
Add deployment instructions for Netlify and Vercel to README, remove …
Browse files Browse the repository at this point in the history
…old DEPLOYING.md
  • Loading branch information
RoelLeijser committed Dec 9, 2024
1 parent 52abbda commit 5682597
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 15 deletions.
41 changes: 41 additions & 0 deletions browser/create-template/templates/nextjs-site/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,47 @@ These selector components are great for when a resource can reference another re
For example, the `page` class has a `blocks` property that can reference any type of resource.
The FullPage view for the `page` class (`PageFullPage`) therefore renders a `BlockView` component that selects the appropriate component to render, i.e. a `TextBlock` or an `ImageGalleryBlock`.

## Deploying

### Deploying to Netlify

#### Prerequisites

- A [Netlify](https://www.netlify.com/) account
- A Git repository with your template project

#### UI

1. Click on the "Add new site" button and select "Import an existing project".
2. Choose your Git provider and select the repository where your project is located.
3. Add the environment variables required by your project

#### CLI

1. Install the Netlify CLI by running `npm install -g netlify-cli`.
2. Run `netlify login` and log in.
3. Run `netlify init` and select the repository you want to deploy.
4. Run `netlify deploy` to deploy the site.

### Deploying to Vercel

#### Prerequisites

- A [Vercel](https://vercel.com/) account
- A Git repository with your template project

#### UI

1. Click on the "Import Project" button and select the repository where your project is located.
2. Add the environment variables required by your project.

#### CLI

1. Install the Vercel CLI by running `npm install -g vercel`.
2. Run `vercel login` and log in.
3. Run `vercel` and select the repository you want to deploy.
4. Run `vercel --prod` to deploy the site to production.

## Resources

- [AtomicServer Docs](https://docs.atomicdata.dev/)
Expand Down
15 changes: 0 additions & 15 deletions browser/create-template/templates/nextjs-site/README/DEPLOYING.md

This file was deleted.

0 comments on commit 5682597

Please sign in to comment.