mirror of
https://github.com/Xevion/linkpulse.git
synced 2025-12-06 09:15:32 -06:00
- Default environment variables through this, instead of .env - Added some basic checks to ensure developers don't stub their toe - Use `railway link`, injecting environment variables without insecure dotenv files
10 lines
271 B
Bash
Executable File
10 lines
271 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# Check whether CWD is 'frontend'
|
|
if [ "$(basename "$(pwd)")" != "frontend" ]; then
|
|
echo "error: This script must be run from the 'frontend' directory."
|
|
exit 1
|
|
fi
|
|
|
|
export VITE_BACKEND_TARGET=${VITE_BACKEND_TARGET:-localhost:8000}
|
|
pnpm run dev |