mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-09-29 04:18:11 +08:00
* Collect all env vars in one, easy-to-find place Past state: * Default environement variables were stored in both client/package.json and client/__tests__/e2e/config.js * Constants that should have been linked--like the cellxgene server port during testing--were repeated. With this commit: * All environment variables are parameterized * All environment variables are packaged in default env files * Move npm scripts to client Makefile * Respond to feedback from @seve and @bkmartinjr
7 lines
270 B
JavaScript
7 lines
270 B
JavaScript
export const jest_env = process.env.JEST_ENV;
|
|
export const appPort = process.env.CXG_SERVER_PORT;
|
|
export const appUrlBase = `http://localhost:${appPort}`;
|
|
export const DEV = jest_env === "dev";
|
|
export const DEBUG = jest_env === "debug";
|
|
export const DATASET = "pbmc3k";
|