Skip to content

Commit 4b007ff

Browse files
committed
fix(frontend): env var prefix & doc
1 parent 8488a88 commit 4b007ff

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

frontend/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ docker compose -f "docker-compose.prod.yml" up -d --build
4545
Define a `.env.production` file to declare `BIOSTACK_API_HOST` this way:
4646

4747
```
48-
NEXT_PUBLIC_BIOSTACK_API_HOST=<your-public-url>
48+
BIOSTACK_API_HOST=<your-public-url>
4949
```
5050

5151
By default, this var will fallback to `http://localhost`

frontend/src/app/utilities/useApi.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { Page, Sample, SampleCreate, SampleUpdate } from "@/app/types";
99
* See https://www.npmjs.com/package/axios
1010
*/
1111
const api = axios.create({
12-
baseURL: `${process.env.NEXT_PUBLIC_BIOSTACK_API_HOST ?? 'http://localhost'}/sample`,
12+
baseURL: `${process.env.BIOSTACK_API_HOST ?? 'http://localhost'}/sample`,
1313
timeout: 3000,
1414
headers: {
1515
'Accept': 'application/json',

0 commit comments

Comments
 (0)