From 813e4db97b790b2b1bee014491007695e6541e3d Mon Sep 17 00:00:00 2001
From: Roel <roelleijser@gmail.com>
Date: Mon, 9 Dec 2024 17:36:31 +0100
Subject: [PATCH] Add deployment instructions for Netlify and Vercel to README,
 remove old DEPLOYING.md

---
 .../templates/nextjs-site/README.md           | 41 +++++++++++++++++++
 .../templates/nextjs-site/README/DEPLOYING.md | 15 -------
 2 files changed, 41 insertions(+), 15 deletions(-)
 delete mode 100644 browser/create-template/templates/nextjs-site/README/DEPLOYING.md

diff --git a/browser/create-template/templates/nextjs-site/README.md b/browser/create-template/templates/nextjs-site/README.md
index adfd641c..bc624c93 100644
--- a/browser/create-template/templates/nextjs-site/README.md
+++ b/browser/create-template/templates/nextjs-site/README.md
@@ -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/)
diff --git a/browser/create-template/templates/nextjs-site/README/DEPLOYING.md b/browser/create-template/templates/nextjs-site/README/DEPLOYING.md
deleted file mode 100644
index 6a35ee7b..00000000
--- a/browser/create-template/templates/nextjs-site/README/DEPLOYING.md
+++ /dev/null
@@ -1,15 +0,0 @@
-# Deploying
-
-## Deploying to Netlify
-
-### Prerequisites
-
-- A [Netlify](https://www.netlify.com/) account
-- A Git repository with your template project
-
-### Steps
-
-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
-4. Click on the "Deploy site" button.