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
409 B
9 lines
409 B
import isNotPackaged from 'electron-is-dev';
|
|
import { join } from 'path';
|
|
|
|
export const IS_DEV = isNotPackaged && process.env.NODE_ENV !== 'production';
|
|
export const APP_ROOT = join(__dirname, '..', '..', '..');
|
|
|
|
export const BASE_URL_DEV = 'http://localhost:3000';
|
|
export const BASE_URL_PROD = `file://${join(APP_ROOT, 'build', 'index.html')}`;
|
|
export const BASE_URL = IS_DEV ? BASE_URL_DEV : BASE_URL_PROD;
|
|
|