Skip to content

Repository files navigation

test-bn-vercel

A notification service built with Better Notify, Hono, and oRPC, deployed on Vercel.

Sends transactional emails via SMTP (primary) with Resend as failover, using React Email templates.

Setup

pnpm install
cp .env.example .env
# Fill in your SMTP and Resend credentials in .env

Development

pnpm dev

Starts a local server on http://localhost:3000 with hot reload.

Build

pnpm build

Bundles the app with Rolldown to dist/server.js.

Deploy

vercel deploy --prod

Vercel auto-detects the Hono app and deploys it as a serverless function.

API

POST /api/notification/sendWelcome

Sends a welcome email.

{
  "to": "user@example.com",
  "name": "Alice",
  "verifyUrl": "https://example.com/verify?token=abc"
}

GET /

Health check — returns {"status":"ok"}.

Links

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages