docs: improve environment variables documentation

This commit is contained in:
Zhenye Dong
2024-11-10 18:01:04 +08:00
parent 77c2c5903a
commit fe90d94d88

View File

@@ -3,6 +3,7 @@
- [Setup](#setup)
- [Creating new themes](#creating-new-themes)
- [Adding localizations](#adding-localizations)
- [Environment Variables](#environment-variables)
Thanks for considering to contribute!
@@ -42,6 +43,19 @@ localization! Follow these steps to add a new localization:
3. Add your language config to [lang.js][lang.js].
4. [Create a PR][pr] with your localization updates.
## Environment Variables
NotionNext uses environment variables for configuration. To set up your development environment:
1. Copy `.env.example` to `.env.local`
2. Fill in the required values in `.env.local`
3. Never commit `.env.local` to version control
The configuration priority is:
1. Notion Config Table (highest)
2. Environment Variables
3. blog.config.js (lowest)
[fork]: https://github.com/tangly1024/NotionNext/fork
[pr]: https://github.com/tangly1024/NotionNext/compare
[next.js]: https://github.com/vercel/next.js