From 6f348c7975c03fb3a46ec78708716b85a3371f85 Mon Sep 17 00:00:00 2001 From: Tiago Yamamoto Date: Sun, 14 Dec 2025 09:39:24 -0300 Subject: [PATCH] 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 --- frontend/.env.example | 15 +++++++++++++++ frontend/.gitignore | 3 ++- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 frontend/.env.example diff --git a/frontend/.env.example b/frontend/.env.example new file mode 100644 index 0000000..f1175c7 --- /dev/null +++ b/frontend/.env.example @@ -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 diff --git a/frontend/.gitignore b/frontend/.gitignore index 5ef6a52..4f7e0a5 100644 --- a/frontend/.gitignore +++ b/frontend/.gitignore @@ -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