Are Preview Environments Supposed to Clone Prod DB Data?

I’m trying to set up Preview Environment (PE) for one of my sites. The documentation for this feature says:

Render’s Preview Environments solve this problem by automatically creating a clone of your production environment (including services, databases, and environment groups)

However, I end up with an empty database after the PE is up and running. Is this expected? Does “clone” in the documentation mean a clone of the prod DB, including the data, or does it only mean the service?

2 Likes

Hi @aaronbrethorst,

Currently, preview environments will not clone the data in your prod database. You can use the initialDeployHook to initialize and seed your preview database, if needed. https://render.com/docs/preview-environments#preview-environment-initialization

1 Like

Thanks for clarifying that, Jade!

Thanks for clarifying that, Jade!

[Discourse post]

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.