How would you implement a function that generates ...
# help
p
How would you implement a function that generates sample data in a development stack for a developer to work with? This is something that should never run in production.
I'm thinking of having a stack with an API endpoint that when called clears the database and creates the new data and this stack is only deployed the stage !== "prod".
r
Exactly that, only run it for a non-prod stage. You could probably do something with the script construct