env value leak to migration though prefix #8028
ivan-kardash
started this conversation in
Feature Requests & Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have set the plugin:
with the configuration:
Finally, I've created a migration by payload CLI
yarn payload migrate:create test
, and noticed that the migration that was created has the value from my.env
file.For instance:
If my
.env
includesS3_PREFIX=bar
, created migration will includes rawIt happens because s3-storage creates a field with the name 'prefix' and defautltValue 'bar'.
For my usage of
payload
, I have got a few environments that can have different prefixes, and I would like to have stable migrations for different stagesBeta Was this translation helpful? Give feedback.
All reactions