mirror of https://github.com/lukechilds/polar.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
357 B
9 lines
357 B
5 years ago
|
import isNotPackaged from 'electron-is-dev';
|
||
|
import { join } from 'path';
|
||
|
|
||
|
export const IS_DEV = isNotPackaged && process.env.NODE_ENV !== 'production';
|
||
|
|
||
|
export const BASE_URL_DEV = 'http://localhost:3000';
|
||
|
export const BASE_URL_PROD = `file://${join(__dirname, '../../../build/index.html')}`;
|
||
|
export const BASE_URL = IS_DEV ? BASE_URL_DEV : BASE_URL_PROD;
|