Newer
Older
export let apiRoot: string;
if (process.env.NODE_ENV === 'production') {
apiRoot = `${window.location.origin}/v1`;
} else {
apiRoot = `http://localhost:8000/v1`;
}
export let apiRoot: string;
if (process.env.NODE_ENV === 'production') {
apiRoot = `${window.location.origin}/v1`;
} else {
apiRoot = `http://localhost:8000/v1`;
}