Setup
Connect your database
The storefront needs a MongoDB connection string before it can show anything. Two lines and a restart.
- Step one
Create
.env.localin the project root (copy.env.example). - Step two
MONGODB_URI=mongodb+srv://user:pass@cluster.mongodb.net MONGODB_DB=crowned AUTH_SECRET=any-random-32-character-string
- Step three
Restart
npm run dev, then come back here and seed the catalog.