basic Dockerfile
This commit is contained in:
@@ -1,8 +1,7 @@
|
||||
import wretch from 'wretch';
|
||||
import { Item } from './Item';
|
||||
|
||||
// TODO move to env var
|
||||
const API_HOST = 'http://localhost:8080';
|
||||
const API_HOST = process.env.REACT_APP_API_HOST ?? 'http://localhost:8080';
|
||||
const itemApi = wretch(`${API_HOST}/api/items`);
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user