#
VPN Wiki
Documentation site built with Retype.
#
Environment Variables
This project supports environment variables for dynamic content. Copy .env.example
to .env
and update the values as needed:
cp .env.example .env
#
Available Variables
DOWNLOAD_URL_MACOS
: URL for macOS application download (defaults to Yandex disk URL)
#
Development
#
Prerequisites
- Node.js
- pnpm
#
Installation
pnpm install
#
Development Server
pnpm start
#
Building
#
Standard Build
pnpm build
#
Build with Environment Variables
pnpm run build:env
The build:env
command will:
- Process markdown files and replace environment variable placeholders (e.g.,
undefined
) - Run the standard Retype build process
#
Environment Variable Usage
In markdown files, use placeholders like undefined
which will be replaced with the corresponding environment variable value during the build process.
Example:
[Download App](undefined)
This will be replaced with:
[Download App](https://your-actual-url.com)
#
Deployment
For production builds, make sure to set your environment variables and use:
export DOWNLOAD_URL_MACOS=https://your-production-url.com
pnpm run build:env