Skip to content

Add vercel quick deployment #33

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,25 @@ I'm really excited that you are interested in contributing to JSON For You. Befo
3. I wish to keep JSON For You lightweight and fast. Please being aware of the number of npm dependencies and their size and don't add **unnecessary** dependencies.
4. Run `pnpm test` to make sure your code pass the core tests.

## Quick Deployment

### Vercel
[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Floggerhead%2Fjson4u)

#### Deployment Steps
1. Click the `Deploy` button and confirm repository creation
2. Wait for Vercel Deploy to complete, then visit the assigned domain (e.g. json4u.vercel.app)
3. Add necessary environment variables:
- In the Vercel project dashboard, go to "Settings" > "Environment Variables"
- Add the following environment variables(refer to the .env):
- LEMONSQUEEZY_SUBSCRIPTION_VARIANT_MAP
- LEMONSQUEEZY_STORE_ID (must be a number)
- LEMONSQUEEZY_WEBHOOK_SECRET
- LEMONSQUEEZY_API_KEY
- SUPABASE_KEY
- After adding all variables, redeploy your project


## Acknowledgment

- Famous library that most people know: [React](https://react.dev/), [Tailwind CSS](https://tailwindcss.com/), [Next.js](https://nextjs.org/), [Zustand](https://zustand-demo.pmnd.rs/) and [Zod](https://zod.dev/).
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@
"@serwist/next": "^9.0.2",
"@testing-library/react": "^16.0.0",
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
"@types/jest": "^29.5.13",
"@types/lodash-es": "^4.17.12",
"@types/mdx": "^2.0.13",
"@types/node": "^20",
Expand Down
Loading