This is a Next.js project bootstrapped with create-next-app
.
Setup the local envs:
# Next.js
VERCEL_URL = ""
# GraphQL
NEXT_PUBLIC_GRAPHQL_URL = ""
# MailerLite
MAILER_LITE_API_TOKEN = ""
MAILER_LITE_GROUP_ID = ""
# Stripe
STRIPE_SECRET_KEY = ""
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY = ""
STRIPE_WEBHOOK_SECRET = ""
# NextAuth
NEXTAUTH_URL = ""
NEXTAUTH_SECRET = ""
# Playwright
PLAYWRIGHT_TEST_BASE_URL = ""
Install the dependencies:
yarn install
Run the development server:
yarn dev
Open http://localhost:3000 with your browser to see the result.
The pages/api
directory is mapped to /api/*
. Files in this directory are treated as API routes instead of React pages.
This project uses next/font
to automatically optimize and load Inter, a custom Google Font.
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Check out our Next.js deployment documentation for more details.