File tree 1 file changed +1
-4
lines changed
frontend/src/app/utilities
1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -3,16 +3,13 @@ import { useCallback } from "react";
3
3
import { useAppContext , useAppDispatchContext } from "../contexts/AppContext" ;
4
4
import { Page , Sample , SampleCreate , SampleUpdate } from "@/app/types" ;
5
5
6
- // Declare a var to load environment variables non inlined
7
- // (note: vars needs to start with NEXT_PUBLIC_ to be available in browser context at runtime)
8
- const env = process . env
9
6
10
7
/**
11
8
* Create a new AXIOS instance to query the API
12
9
* See https://www.npmjs.com/package/axios
13
10
*/
14
11
const api = axios . create ( {
15
- baseURL : `${ env . NEXT_PUBLIC_BIOSTACK_API_HOST ?? 'http://localhost' } /sample` ,
12
+ baseURL : `${ process . env . NEXT_PUBLIC_BIOSTACK_API_HOST ?? 'http://localhost' } /sample` ,
16
13
timeout : 3000 ,
17
14
headers : {
18
15
'Accept' : 'application/json' ,
You can’t perform that action at this time.
0 commit comments