docs: readme
This commit is contained in:
parent
313a576106
commit
0212610a15
@ -1,8 +0,0 @@
|
||||
# Added by Payload
|
||||
DATABASE_URI=your-connection-string-here
|
||||
PAYLOAD_SECRET=YOUR_SECRET_HERE
|
||||
S3_BUCKET=YOUR_BUCKET
|
||||
S3_ACCESS_KEY_ID=YOUR_ACCESS_KEY
|
||||
S3_SECRET_ACCESS_KEY=YOUR_SECRET
|
||||
S3_REGION=YOUR_REGION
|
||||
S3_ENDPOINT=YOUR_ENDPOINT
|
47
README.md
47
README.md
@ -2,35 +2,38 @@ This is a [Next.js](https://nextjs.org) project bootstrapped with [`create-next-
|
||||
|
||||
## Getting Started
|
||||
|
||||
First, run the development server:
|
||||
### 1. Create .env file
|
||||
|
||||
You can create `.env` file based on `env` file, put some env variable that is required by payload cms.
|
||||
|
||||
### 2. Run
|
||||
|
||||
You can run the development server with old bundler:
|
||||
|
||||
```bash
|
||||
npm run dev-old
|
||||
|
||||
```
|
||||
|
||||
or run the development server with new bundler (turbopack):
|
||||
|
||||
```bash
|
||||
npm run dev
|
||||
# or
|
||||
yarn dev
|
||||
# or
|
||||
pnpm dev
|
||||
# or
|
||||
bun dev
|
||||
|
||||
```
|
||||
|
||||
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
|
||||
### 3. Open
|
||||
|
||||
You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.
|
||||
You can access it by visiting:
|
||||
|
||||
This project uses [`next/font`](https://nextjs.org/docs/app/building-your-application/optimizing/fonts) to automatically optimize and load [Geist](https://vercel.com/font), a new font family for Vercel.
|
||||
```
|
||||
http://localhost:3000
|
||||
```
|
||||
|
||||
## Learn More
|
||||
## Admin Panel
|
||||
|
||||
To learn more about Next.js, take a look at the following resources:
|
||||
The admin panel has been provided by `Payload CMS`, you can access it by visiting:
|
||||
|
||||
- [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
|
||||
|
||||
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.
|
||||
|
||||
Check out our [Next.js deployment documentation](https://nextjs.org/docs/app/building-your-application/deploying) for more details.
|
||||
```
|
||||
http://localhost:3000/admin
|
||||
```
|
||||
|
10
env
10
env
@ -3,3 +3,13 @@ SERVICE_SUPABASESERVICE_KEY=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJzdXB
|
||||
SERVICE_SUPABASEANON_KEY=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJzdXBhYmFzZSIsImlhdCI6MTczODQ3MzA2MCwiZXhwIjo0ODk0MTQ2NjYwLCJyb2xlIjoiYW5vbiJ9.WXJvhzD1gD6Kxlq8PLFAcpaVFmh9h3xbJHh9oow2IFQ
|
||||
|
||||
SUPABASE_URL=https://supabasekong-n00g8kwoos4skc0gw44k8sks.dev3vds1.link
|
||||
|
||||
<!-- Payload -->
|
||||
|
||||
DATABASE_URI=your-connection-string-here
|
||||
PAYLOAD_SECRET=YOUR_SECRET_HERE
|
||||
S3_BUCKET=YOUR_BUCKET
|
||||
S3_ACCESS_KEY_ID=YOUR_ACCESS_KEY
|
||||
S3_SECRET_ACCESS_KEY=YOUR_SECRET
|
||||
S3_REGION=YOUR_REGION
|
||||
S3_ENDPOINT=YOUR_ENDPOINT
|
||||
|
Loading…
x
Reference in New Issue
Block a user