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:
|
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
|
||||||
|
|||||||
@ -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)
|
||||||
|
|||||||
@ -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)
|
||||||
|
|||||||
@ -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}
|
||||||
|
|||||||
@ -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 = {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user