saus
saus copied to clipboard
Transform `defineSecrets` call for production SSR bundle
The SSR bundle already loads in secrets from the deployed branch of the git repository. At build time, we can replace the defineSecrets call with an object that references the required keys of the deployedEnv object.
This allows for functions that rely on defineSecrets to be used in production SSR bundles.