@@ -8,13 +8,12 @@ Welcome! This is the repo for [Directus' documentation](https://docs.directus.io
8
8
9
9
** [ Learn more about Directus] ( https://directus.io ) **
10
10
11
- <br />
12
11
13
12
## 🖥️ Running the Docs
14
13
15
14
### Requirements
16
15
17
- - Node.js 20
16
+ - Node.js 22
18
17
- pnpm
19
18
20
19
### Install Dependencies
@@ -25,10 +24,15 @@ pnpm install
25
24
26
25
### Setup Environment
27
26
27
+ Copy the example environment file:
28
+
28
29
``` bash
29
30
cp .env.example .env
30
31
```
31
32
33
+ Update the environment variables in the ` .env ` file with proper secret keys for the different
34
+ services.
35
+
32
36
### Run Development Server
33
37
34
38
Start the development server on ` http://localhost:3000 ` :
@@ -37,18 +41,19 @@ Start the development server on `http://localhost:3000`:
37
41
pnpm dev
38
42
```
39
43
44
+ ### Building Locally
45
+
46
+ ``` bash
47
+ pnpm build
48
+ ```
49
+
40
50
## ☁️ Deploying the Docs
41
51
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:
45
53
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
52
57
53
58
## 🚀 Contributing
54
59
0 commit comments