Skip to content
This repository has been archived by the owner on Feb 15, 2023. It is now read-only.

Add netlify deployment instructions #162

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,3 +102,19 @@ Then, from within your project folder:
npm run build
surge public my-project.surge.sh
```

### With [Netlify](https://www.netlify.com/) CLI

Install `netlify-cli` if you haven't already:

```bash
npm install -g netlify-cli
```

Then, from within your project folder:

```bash
netlify deploy --prod
```

Follow the instructions and be sure to set `public` as Publish Directory.
Comment on lines +116 to +120
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I love this callout for making sure to select the public directory because I totally didn't catch it myself when I tried to deploy so I know this is helpful!

It looks like the CLI added a flag to use instead too, so we can update the command to:

netlify deploy --dir=public --prod

and leave the rest to "Follow the rest of the setup instructions"