From 4ebe6da79341ecad16ad522127b99da7b3dcbf2d Mon Sep 17 00:00:00 2001 From: Aditya Siregar Date: Fri, 15 Aug 2025 23:16:19 +0700 Subject: [PATCH] Update .env --- BACKEND_CONFIG.md | 4 ++-- ENV_SETUP.md | 2 +- README.md | 2 +- docker-compose.yml | 4 ++-- lib/config.ts | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/BACKEND_CONFIG.md b/BACKEND_CONFIG.md index 4550159..2502fc3 100644 --- a/BACKEND_CONFIG.md +++ b/BACKEND_CONFIG.md @@ -8,7 +8,7 @@ If you're having issues with environment variables, you can modify the backend U Find this line in the file: ```typescript -const BACKEND_URL = 'http://localhost:4000' // Change this to your backend URL +const BACKEND_URL = 'https://evoting-be.apskel.org' // Change this to your backend URL ``` Change it to your actual backend URL, for example: @@ -35,7 +35,7 @@ npm run dev ## Current Configuration The application is currently configured to call: -- **Login URL**: `http://localhost:4000/api/v1/auth/login` +- **Login URL**: `https://evoting-be.apskel.org/api/v1/auth/login` - **Auth Header**: `••••••` ## Debug Information diff --git a/ENV_SETUP.md b/ENV_SETUP.md index 02e7b77..5ad1e38 100644 --- a/ENV_SETUP.md +++ b/ENV_SETUP.md @@ -6,7 +6,7 @@ Create a `.env.local` file in the root directory with the following variables: ```bash # External API Configuration -NEXT_PUBLIC_API_BASE_URL=http://localhost:4000 +NEXT_PUBLIC_API_BASE_URL=https://evoting-be.apskel.org NEXT_PUBLIC_API_AUTH_HEADER=•••••• # JWT Secret (for local token generation) diff --git a/README.md b/README.md index 4ebc7b9..04def7f 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ Create a `.env.local` file in the root directory with the following variables: ```bash # External API Configuration -NEXT_PUBLIC_API_BASE_URL=http://localhost:4000 +NEXT_PUBLIC_API_BASE_URL=https://evoting-be.apskel.org NEXT_PUBLIC_API_AUTH_HEADER=•••••• # JWT Secret (for local token generation) diff --git a/docker-compose.yml b/docker-compose.yml index ff6d8b2..6e06504 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -12,7 +12,7 @@ services: - "3000:3000" environment: - NODE_ENV=development - - NEXT_PUBLIC_API_BASE_URL=${NEXT_PUBLIC_API_BASE_URL:-http://localhost:4000} + - NEXT_PUBLIC_API_BASE_URL=${NEXT_PUBLIC_API_BASE_URL:-https://evoting-be.apskel.org} - NEXT_PUBLIC_API_AUTH_HEADER=${NEXT_PUBLIC_API_AUTH_HEADER} - JWT_SECRET=${JWT_SECRET:-your-secret-key-change-this} - NEXT_PUBLIC_BASE_URL=${NEXT_PUBLIC_BASE_URL:-http://localhost:3000} @@ -60,4 +60,4 @@ networks: volumes: postgres_data: - redis_data: \ No newline at end of file + redis_data: diff --git a/lib/config.ts b/lib/config.ts index adc482a..7d7d46b 100644 --- a/lib/config.ts +++ b/lib/config.ts @@ -1,6 +1,6 @@ // API Configuration // You can modify these values directly here if environment variables are not working -const BACKEND_URL = 'http://localhost:4000' // Change this to your backend URL +const BACKEND_URL = 'https://evoting-be.apskel.org' // Change this to your backend URL const AUTH_HEADER = '' // Change this to your actual auth header export const API_CONFIG = {