doabell / benu

Menu, but better

Home Page:https://benu.vercel.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Benu

Menu, but better

This is a Next.js project bootstrapped with create-next-app, and deployed on Vercel.

It uses shadowwalker/next-pwa for two purposes:

  • Add to home screen in iOS (only works in Safari)
  • Offline availability (there might still be a delay unless you turn on airplane mode)

Quick Start

Clone the repository and npm ci or npm install.

Edge Functions

src/pages/api/handler.ts is an Edge Function in Vercel.

There is a limit of 500,000 "execution units" (50 ms of CPU time).

Cache

The Cache-Control header is set in src/pages/api/handler.ts.

You can customize browser and Vercel caching by setting the relevant headers.

PWA-level caching is set in cache.js.

Note on Vercel caching: you'll only see cache misses in the logs; head over to DevTools to see cache hits.

About

Menu, but better

https://benu.vercel.app/


Languages

Language:TypeScript 69.4%Language:JavaScript 15.2%Language:CSS 11.9%Language:Dockerfile 3.3%Language:Shell 0.2%