You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
we have to add the following part at wrangler.toml file using the command -->> [npx wrangler d1 create user-prisma-api]
[[d1_databases]]
binding = "DB"
database_name = "My_DB"
database_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
migrations_dir = "prisma/migrations"
then we can use the command without any problem [npx prisma migrate dev --name init_schema]
Using this way , we don't need to change wifi or server networks
here is some screenshots
The text was updated successfully, but these errors were encountered:
for every route we have to connect to database because of that api is taking too much time . is there any way we can only connect to database once . (possible way can be if we can write outside route or make middleware which only runs once , but
cloudflare does not support dotenv module )
we have to add the following part at wrangler.toml file using the command -->> [npx wrangler d1 create user-prisma-api]
[[d1_databases]]
binding = "DB"
database_name = "My_DB"
database_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
migrations_dir = "prisma/migrations"
then we can use the command without any problem [npx prisma migrate dev --name init_schema]
Using this way , we don't need to change wifi or server networks
here is some screenshots
The text was updated successfully, but these errors were encountered: