Skip to content
Snippets Groups Projects
config.ts 175 B
Newer Older
export let apiRoot: string;

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