mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-13 15:09:13 +00:00
docs: improve environment variables documentation
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user