Update .env
This commit is contained in:
parent
8992328c1b
commit
4ebe6da793
@ -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
|
||||
|
||||
@ -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)
|
||||
|
||||
@ -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)
|
||||
|
||||
@ -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:
|
||||
redis_data:
|
||||
|
||||
@ -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 = {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user