Skip to content

Commit a432edf

Browse files
Update prisma.md
Add hint to use ConfigModule in Prisma Recipe
1 parent b917050 commit a432edf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

content/recipes/prisma.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ Now, open up `.env` and adjust the `DATABASE_URL` environment variable to look a
8888
DATABASE_URL="file:./dev.db"
8989
```
9090

91+
Make sure [you have a ConfigModule configured](https://docs.nestjs.com/techniques/configuration), otherwise the `DATABASE_URL` variable will not be picked up from `.env`.
92+
9193
SQLite databases are simple files; no server is required to use a SQLite database. So instead of configuring a connection URL with a _host_ and _port_, you can just point it to a local file which in this case is called `dev.db`. This file will be created in the next step.
9294

9395
<details><summary>Expand if you're using PostgreSQL or MySQL</summary>

0 commit comments

Comments
 (0)