Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: preview environments #3152

Open
elevatebart opened this issue Feb 18, 2025 · 0 comments
Open

feature: preview environments #3152

elevatebart opened this issue Feb 18, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@elevatebart
Copy link
Contributor

Is your feature request related to a problem? Please describe

When we set up a website with nuxt-content, it is useful to have preview environments setup. One for each PR sent our way.
If they share the same database, their data will collide.
When one will start, the other will die and need resetting.

Describe the solution you'd like

A way to pass a prefix to collection names at build time so the collection have their env in the name:

_content_docs would become _content_feat_new_blog_post_docs

could this be done through an environment variable?

Describe alternatives you've considered

Creating a new database programmatically for each environment.

Another alternative is to home bake it directly in the config. It feels awkward.

Additional context

n/a

@elevatebart elevatebart added the enhancement New feature or request label Feb 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant