mirror of
https://github.com/dergigi/boris.git
synced 2025-12-17 06:34:24 +01:00
feat: configure default article via environment variable
- Add VITE_DEFAULT_ARTICLE_NADDR env variable support - Create .env with default article naddr - Create .env.example for documentation - Add vite-env.d.ts for TypeScript type support - Fallback to hardcoded value if env var not set - Using Vite's built-in env variable support (no dotenv needed)
This commit is contained in:
3
.env.example
Normal file
3
.env.example
Normal file
@@ -0,0 +1,3 @@
|
||||
# Default article to display on app load
|
||||
# This should be a valid naddr1... string (NIP-19 encoded address pointer to a kind:30023 long-form article)
|
||||
VITE_DEFAULT_ARTICLE_NADDR=naddr1qvzqqqr4gupzqmjxss3dld622uu8q25gywum9qtg4w4cv4064jmg20xsac2aam5nqqxnzd3cxqmrzv3exgmr2wfesgsmew
|
||||
Reference in New Issue
Block a user