Skip to content

Commit 91bb70c

Browse files
committed
changes to app
1 parent dca62ee commit 91bb70c

File tree

6 files changed

+324
-26
lines changed

6 files changed

+324
-26
lines changed
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
PLANETSCALE_PRISMA_DATABASE_URL=mysql://<USERNAME>:<PLAIN_TEXT_PASSWORD>@<ACCESS_HOST_URL>/<DATABASE_NAME>?sslaccept=strict
1+
# Use the draft/non-production database credentials here.
2+
PLANETSCALE_PRISMA_DATABASE_URL=mysql://draftbranch_username:[email protected]/test-database?sslaccept=strict

planetscale-nextjs-tutorial/README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
[![Netlify Status](https://api.netlify.com/api/v1/badges/cd9c9e88-b353-4548-a00b-641fefafe3f6/deploy-status)](https://app.netlify.com/sites/planetscale-nextjs-tutorial/deploys)
2+
3+
# Instructions
4+
5+
```
6+
pnpm i
7+
npx prisma db push
8+
pnpm dev
9+
pnpm seed
10+
pnpm build
11+
12+
netlify deploy --build --seed
13+
```
14+
15+
---
16+
117
# Next.js starter
218

319
This is a [Next.js](https://nextjs.org/) project that uses [Prisma](https://www.prisma.io/) to connect to a [PlanetScale](https://planetscale.com/) database and [Tailwind CSS](https://tailwindcss.com/) for styling.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[[plugins]]
2+
package = "@netlify/plugin-nextjs"
3+
4+
[build]
5+
command = "yarn next build"
6+
publish = ".next"
7+
8+
[template.environment]
9+
PLANETSCALE_PRISMA_DATABASE_URL = "mysql://draftbranch_username:[email protected]/test-database?sslaccept=strict"

0 commit comments

Comments
 (0)