Skip to content

Commit 2dfbc70

Browse files
Fix example ENV to be inline with production (#393)
* update example env * update readme
1 parent ad0ded4 commit 2dfbc70

File tree

2 files changed

+23
-22
lines changed

2 files changed

+23
-22
lines changed

.env.example

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
1-
NUXT_PUBLIC_SITE_URL=http://localhost:3000
2-
NUXT_SITE_ENV=preview
3-
NUXT_PUBLIC_INKEEP_API_KEY=your_api_key_here
4-
NUXT_PUBLIC_INKEEP_INTEGRATION_ID=your_id_here
5-
NUXT_PUBLIC_INKEEP_ORGANIZATION_ID=your_id_here
6-
NUXT_PUBLIC_NEWSLETTER_URL=your_url_here
7-
NUXT_PUBLIC_PRODUCT_DIRECTUS_URL=your_url_here
8-
NUXT_IMAGE_DOMAINS=your_url_here
9-
ALGOLIA_API_KEY=
10-
ALGOLIA_APPLICATION_ID=
11-
DIRECTUS_URL=
1+
ALGOLIA_API_KEY=algolia_api_key
2+
ALGOLIA_APPLICATION_ID=algolia_application_id
3+
DIRECTUS_URL=https://marketing-directus-url.com
4+
GOOGLE_TAG_MANAGER_ID=GTM-PTLT3GH
5+
NUXT_UI_PRO_LICENSE=nuxt_ui_pro_license_key_needed_to_build
6+
POSTHOG_API_HOST=https://directus.io/ingest
7+
POSTHOG_API_KEY=phc_secret_key_here

README.md

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,12 @@ Welcome! This is the repo for [Directus' documentation](https://docs.directus.io
88

99
**[Learn more about Directus](https://directus.io)**
1010

11-
<br />
1211

1312
## 🖥️ Running the Docs
1413

1514
### Requirements
1615

17-
- Node.js 20
16+
- Node.js 22
1817
- pnpm
1918

2019
### Install Dependencies
@@ -25,10 +24,15 @@ pnpm install
2524

2625
### Setup Environment
2726

27+
Copy the example environment file:
28+
2829
```bash
2930
cp .env.example .env
3031
```
3132

33+
Update the environment variables in the `.env` file with proper secret keys for the different
34+
services.
35+
3236
### Run Development Server
3337

3438
Start the development server on `http://localhost:3000`:
@@ -37,18 +41,19 @@ Start the development server on `http://localhost:3000`:
3741
pnpm dev
3842
```
3943

44+
### Building Locally
45+
46+
```bash
47+
pnpm build
48+
```
49+
4050
## ☁️ Deploying the Docs
4151

42-
Due to [a bug in Nitro](https://github.com/nitrojs/nitro/issues/1484), Netlify isn't able to
43-
auto-build this website on pushes to main. Instead, a member of the core team has to deploy it
44-
manually through the [Netlify CLI](https://docs.netlify.com/cli/get-started/).
52+
The documentation automatically deploys to Vercel when changes are merged into the main branch. Simply:
4553

46-
1. `netlify env:list --plain` – Get a copy of the `.env` you'll need to build the website
47-
1. `pnpm run generate` – Build the website locally
48-
1. `netlify deploy` – This will deploy a staging build to a branch to verify everything looks good.
49-
Once that's good to go:
50-
1. `netlify deploy --prod` – This will then upload the same thing again but push it live to the prod
51-
website
54+
1. Open a Pull Request with your changes
55+
2. This should trigger a deploy preview as well.
56+
3. Once PR is approved and merged to main, Vercel will automatically build and deploy the updated documentation
5257

5358
## 🚀 Contributing
5459

0 commit comments

Comments
 (0)