Wordledge

An implementation of Wordle to help you learn Next.js and Vercel.

Wordledge

Demo: https://wordledge.vercel.app

Development

To develop locally:

npm run dev

Edge

In pages/middleware.ts we implement the /check endpoint which gets deployed to all Vercel regions automatically and has no cold boots. Any time you submit, we make a query against /check.

Users get automatically routed to the nearest region. Read more about Edge Functions.

Note: Soon, for ergonomic reasons, Next.js will help you run api/check as an Edge Function as well.

Credits & License