mirror of
https://github.com/cypress-io/cypress.git
synced 2026-02-12 02:00:06 -06:00
See #19347 for full summary Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com> Co-authored-by: estrada9166 <estrada9166@hotmail.com> Co-authored-by: Alejandro Estrada <estrada9166@gmail.com> Co-authored-by: Jess <jess@jessicasachs.io>
34 lines
1.2 KiB
TypeScript
34 lines
1.2 KiB
TypeScript
// Where to fetch the remote "federated" schema. If you have a long-running branch
|
|
// against a development schema, it's probably easiest to set this manually to "develop"
|
|
declare global {
|
|
namespace NodeJS {
|
|
interface ProcessEnv {
|
|
CYPRESS_INTERNAL_ENV: 'staging' | 'development' | 'production'
|
|
}
|
|
}
|
|
}
|
|
|
|
export const DEFAULT_INTERNAL_CLOUD_ENV = process.env.CYPRESS_INTERNAL_ENV || 'staging'
|
|
|
|
export type MODES = 'dev' | 'devWatch' | 'test'
|
|
|
|
export const ENV_VARS = {
|
|
// Building the "production" version of Cypress
|
|
PROD: {
|
|
CYPRESS_INTERNAL_ENV: 'production',
|
|
CYPRESS_INTERNAL_CLOUD_ENV: 'production',
|
|
},
|
|
|
|
// Uses the "built" vite assets, not the served ones
|
|
DEV_OPEN: {
|
|
CYPRESS_KONFIG_ENV: DEFAULT_INTERNAL_CLOUD_ENV, // TODO: Change this / remove konfig
|
|
CYPRESS_INTERNAL_CLOUD_ENV: DEFAULT_INTERNAL_CLOUD_ENV, // staging for now, until we get an e2e workflow w/ cloud project
|
|
},
|
|
|
|
// Used when we're running Cypress in true "development" mode
|
|
DEV: {
|
|
CYPRESS_KONFIG_ENV: DEFAULT_INTERNAL_CLOUD_ENV, // TODO: Change this / remove konfig
|
|
CYPRESS_INTERNAL_CLOUD_ENV: DEFAULT_INTERNAL_CLOUD_ENV, // staging for now, until we get an e2e workflow w/ cloud project
|
|
},
|
|
}
|