mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-12 02:29:09 +00:00
38 lines
758 B
TypeScript
38 lines
758 B
TypeScript
interface Mapping {
|
|
[key: string]: string;
|
|
}
|
|
|
|
const envMapping: Mapping = {
|
|
Development: "dev",
|
|
Staging: "staging",
|
|
Production: "prod",
|
|
Testing: "test",
|
|
};
|
|
|
|
const reverseEnvMapping: Mapping = {
|
|
dev: "Development",
|
|
staging: "Staging",
|
|
prod: "Production",
|
|
test: "Testing",
|
|
};
|
|
|
|
const contextNetlifyMapping: Mapping = {
|
|
"dev": "Local development",
|
|
"branch-deploy": "Branch deploys",
|
|
"deploy-review": "Deploy Previews",
|
|
"production": "Production"
|
|
}
|
|
|
|
const reverseContextNetlifyMapping: Mapping = {
|
|
"Local development": "dev",
|
|
"Branch deploys": "branch-deploy",
|
|
"Deploy Previews": "deploy-preview",
|
|
"Production": "production"
|
|
}
|
|
|
|
export {
|
|
contextNetlifyMapping,
|
|
envMapping,
|
|
reverseContextNetlifyMapping,
|
|
reverseEnvMapping}
|