Skip to content

Commit

Permalink
chore: wip
Browse files Browse the repository at this point in the history
  • Loading branch information
cschroeter committed Nov 29, 2023
1 parent ba4efe9 commit 99b21c5
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 45 deletions.
42 changes: 10 additions & 32 deletions playground/README.md
Original file line number Diff line number Diff line change
@@ -1,38 +1,16 @@
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).

## Getting Started

First, run the development server:
## Database Migration

```bash
npm run dev
# or
yarn dev
# or
pnpm dev
```

Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.

You can start editing the page by modifying `pages/index.tsx`. The page auto-updates as you edit the file.

[API routes](https://nextjs.org/docs/api-routes/introduction) can be accessed on [http://localhost:3000/api/hello](http://localhost:3000/api/hello). This endpoint can be edited in `pages/api/hello.ts`.
# Conntect to db
pscale connect playground <Branch> --port 3309

The `pages/api` directory is mapped to `/api/*`. Files in this directory are treated as [API routes](https://nextjs.org/docs/api-routes/introduction) instead of React pages.
# Push schema changes
pnpm prisma db push

This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font.

## Learn More

To learn more about Next.js, take a look at the following resources:

- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.

You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!

## Deploy on Vercel
# Create deploy request
pscale deploy-request create playground <Branch>
```

The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
### Resources

Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.
https://planetscale.com/docs/prisma/automatic-prisma-migrations

This file was deleted.

3 changes: 0 additions & 3 deletions playground/prisma/migrations/migration_lock.toml

This file was deleted.

2 changes: 1 addition & 1 deletion playground/prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ datasource db {
model Session {
id String @id @default(cuid())
code String @db.Text
css String @db.Text
css String? @db.Text
config String @db.Text
createdAt DateTime @default(now())
}

0 comments on commit 99b21c5

Please sign in to comment.