chore: add frontend .env.example and fix gitignore
- Update frontend/.gitignore to allow .env.example - Create frontend/.env.example with correct API_URL format (/api/v1 suffix) - Document production URL: https://api-dev.gohorsejobs.com/api/v1
This commit is contained in:
parent
703e651daa
commit
6f348c7975
2 changed files with 17 additions and 1 deletions
15
frontend/.env.example
Normal file
15
frontend/.env.example
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
# =============================================================================
|
||||
# GoHorse Jobs Frontend - Environment Variables Example
|
||||
# =============================================================================
|
||||
# Copy this file to .env.local and update the values
|
||||
|
||||
# API Backend URL
|
||||
# IMPORTANT: Include /api/v1 suffix
|
||||
# Local development:
|
||||
NEXT_PUBLIC_API_URL=http://localhost:8521/api/v1
|
||||
|
||||
# Production:
|
||||
# NEXT_PUBLIC_API_URL=https://api-dev.gohorsejobs.com/api/v1
|
||||
|
||||
# Vercel Analytics (optional)
|
||||
NEXT_PUBLIC_VERCEL_ANALYTICS=false
|
||||
3
frontend/.gitignore
vendored
3
frontend/.gitignore
vendored
|
|
@ -30,8 +30,9 @@ yarn-debug.log*
|
|||
yarn-error.log*
|
||||
.pnpm-debug.log*
|
||||
|
||||
# env files (can opt-in for committing if needed)
|
||||
# env files (keep .env.example for documentation)
|
||||
.env*
|
||||
!.env.example
|
||||
|
||||
# vercel
|
||||
.vercel
|
||||
|
|
|
|||
Loading…
Reference in a new issue