Update .env

This commit is contained in:
Aditya Siregar 2025-08-15 23:16:19 +07:00
parent 8992328c1b
commit 4ebe6da793
5 changed files with 7 additions and 7 deletions

View File

@ -8,7 +8,7 @@ If you're having issues with environment variables, you can modify the backend U
Find this line in the file: Find this line in the file:
```typescript ```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: Change it to your actual backend URL, for example:
@ -35,7 +35,7 @@ npm run dev
## Current Configuration ## Current Configuration
The application is currently configured to call: 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**: `••••••` - **Auth Header**: `••••••`
## Debug Information ## Debug Information

View File

@ -6,7 +6,7 @@ Create a `.env.local` file in the root directory with the following variables:
```bash ```bash
# External API Configuration # 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=•••••• NEXT_PUBLIC_API_AUTH_HEADER=••••••
# JWT Secret (for local token generation) # JWT Secret (for local token generation)

View File

@ -18,7 +18,7 @@ Create a `.env.local` file in the root directory with the following variables:
```bash ```bash
# External API Configuration # 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=•••••• NEXT_PUBLIC_API_AUTH_HEADER=••••••
# JWT Secret (for local token generation) # JWT Secret (for local token generation)

View File

@ -12,7 +12,7 @@ services:
- "3000:3000" - "3000:3000"
environment: environment:
- NODE_ENV=development - 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} - NEXT_PUBLIC_API_AUTH_HEADER=${NEXT_PUBLIC_API_AUTH_HEADER}
- JWT_SECRET=${JWT_SECRET:-your-secret-key-change-this} - JWT_SECRET=${JWT_SECRET:-your-secret-key-change-this}
- NEXT_PUBLIC_BASE_URL=${NEXT_PUBLIC_BASE_URL:-http://localhost:3000} - NEXT_PUBLIC_BASE_URL=${NEXT_PUBLIC_BASE_URL:-http://localhost:3000}
@ -60,4 +60,4 @@ networks:
volumes: volumes:
postgres_data: postgres_data:
redis_data: redis_data:

View File

@ -1,6 +1,6 @@
// API Configuration // API Configuration
// You can modify these values directly here if environment variables are not working // 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 const AUTH_HEADER = '' // Change this to your actual auth header
export const API_CONFIG = { export const API_CONFIG = {