Skip to content
This repository was archived by the owner on Feb 10, 2025. It is now read-only.

models: Add a seperate models-staging.yml to allow for separate versioning. #66

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion lib/models.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
const isProduction = process.env.APP_ENVIRONMENT === 'production'

const models: ModelMap = require('../models.yml')
const models: ModelMap = isProduction
? require('../models.yml')
: require('../models-staging.yml')

Object.keys(models).forEach(modelId => {
if (isProduction && !models[modelId].isProductionReady) {
Expand Down
Loading