saus icon indicating copy to clipboard operation
saus copied to clipboard

Transform `defineSecrets` call for production SSR bundle

Open aleclarson opened this issue 3 years ago • 0 comments

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.

aleclarson avatar Aug 01 '22 23:08 aleclarson