This is a Next.js project bootstrapped with create-next-app. It is a boilerplate for CustomHack.
tl;dr click here to deploy to Vercel or open in StackBlitz.
First, install the dependencies via a package manager (we prefer pnpm):
pnpm installNext run the development server
pnpm devOpen http://localhost:3000 with your browser to see the result.
You can start editing the page by modifying app/page.tsx. The page auto-updates as you edit the file.
This project uses next/font to automatically optimize and load Geist, a new font family for Vercel.
AI localization for teams who ship fast. Translate apps, websites, and entire databases using the best LLM models.
Set your Lingo.dev API key as LINGODOTDEV_API_KEY (or login via npx lingo.dev@latest login) to use Compiler and CLI.
Next.js application is localized using Lingo.dev Compiler.
Resend email templates are localized via Lingo.dev CLI.
To localize templates tun npx lingo.dev@latest run.
The most simple and flexible way to setup payments.
- https://useautumn.com/
- Sign up via this link to auto create sample free and pro tiers in your Autumn sandbox.
- Paste in Stripe test secret key to your Autumn account on this page
- Create your Autumn API key in your account here
Set your API key as AUTUMN_SECRET_KEY env variable.
Add React components to your AI assistant, copilot, or agent.
Set your Tambo API key as NEXT_PUBLIC_TAMBO_API_KEY env variable. The NEXT_PUBLIC_ prefix makes it available client-side in browser.
Use Tambo with BetterAuth (src/app/tambo/auth/page.tsx):
// Check session and get Google ID token
const { data: session } = useSession();
const token = await getAccessToken({ providerId: "google" });
// Pass idToken to Tambo as userToken
<TamboProvider
apiKey={process.env.NEXT_PUBLIC_TAMBO_API_KEY!}
userToken={token.data?.idToken}
>
<MessageThreadFull />
</TamboProvider>The most comprehensive authentication framework for TypeScript.
Set the following env vars:
- secret key as
BETTER_AUTH_SECRET - base url as
BETTER_AUTH_URL
After editing your Prisma schema (prisma/schema.prisma file) or on first setup, run:
# Run a new migration and apply it to your database
npx prisma migrate dev --name <migration-name>
# Generate the Prisma client (usually done automatically by migrate)
npx prisma generateSet database connection string as DATABASE_URL and DIRECT_URL env vars (in Supabase, choose Connect -> ORMs -> Prisma)
For more details on Prisma, see:
You can setup a Supabase database and lear about it here:
Email for developers
Set your API key as RESEND_API_KEY and sender email as RESEND_FROM_EMAIL env variables. Make sure you have the sender domain correctly configured in your Resend account.
Web scraping for devs & agents
Set your API key as FIRECRAWL_API_KEY env variable.
UI library for Design Engineers
The React Framework for the Web
You need to create and use your own accounts and setup env variables for your project. It is up to you how you do this:
-
put them in
.envfile of your project. Seeenv.examplefor a full list of env vars. Next.js loads them automatically for you. -
export them globally (eg.
export LINGODOTDEV_API_KEY=api_xxx) in your shell or profile (eg.~/.profile)
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.
When deploying to Vercel make sure to populate all env variables in your app.