basic Dockerfile

This commit is contained in:
Guy Bianco IV
2021-05-21 11:51:51 -04:00
parent 491a5672f2
commit df939f781f
3 changed files with 97 additions and 2 deletions

View File

@@ -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`);
/**