I’m using different environment configs that I specify with -e and I would like to have pages that are only available on a specific environment. I’ve found people asking similar questions, however, I don’t see the replies answering this specific question.
@jmooring thank you very much for this! Is there any way that wouldn’t require prefixing the posts with a specific path? E.g. by setting a flag inside the posts themselves?
I thought of something similar like draft: true, only that it could specify the environment for which they are intended. That would make it possible to dynamically enable/disable posts for individual environments.
And you wanted to exclude book-2 and film-3 from your “production” environment builds. The cascade target keywords are glob patterns, allowing you to do this: