We want to seed sample users articles, and reviews for the development environment. So that we don't have to manually add users, articles, and reviews during testing.
Use process.env.NODE_ENV === "development to detect if the seeding is done in the development environment or not.
We also want to clear out Algolia indices while seeding as well.
We want to seed sample users articles, and reviews for the development environment. So that we don't have to manually add users, articles, and reviews during testing.
Use
process.env.NODE_ENV === "developmentto detect if the seeding is done in the development environment or not.We also want to clear out Algolia indices while seeding as well.