mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
55 lines
1.1 KiB
TypeScript
55 lines
1.1 KiB
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"
|
|
}
|
|
|
|
const plansDev: Mapping = {
|
|
"starter": "prod_Mb4ATFT5QAHoPM",
|
|
"team": "prod_NEpD2WMXUS2eDn",
|
|
"professional": "prod_Mb4CetZ2jE7jdl",
|
|
"enterprise": "licence_key_required"
|
|
}
|
|
|
|
const plansProd: Mapping = {
|
|
"starter": "prod_Mb8oR5XNwyFTul",
|
|
"team": "prod_NEp7fAB3UJWK6A",
|
|
"professional": "prod_Mb8pUIpA0OUi5N",
|
|
"enterprise": "licence_key_required"
|
|
}
|
|
|
|
const plans = plansProd || plansDev;
|
|
|
|
export {
|
|
contextNetlifyMapping,
|
|
envMapping,
|
|
plans,
|
|
reverseContextNetlifyMapping,
|
|
reverseEnvMapping}
|