Discover neighborhood restaurants with style — powered by static export, modular components, and real-time previews. Preview it live here.
- Next.js App Router (v15+)
- TypeScript
- React Bootstrap for layout
- FontAwesome for icons
- Static JSON Data via
/public/data/restaurants.json - Custom Hooks (e.g.:
useRestaurantUtils()) - Client/Server Split Routing with dynamic previews
RestoHunt uses a local JSON file stored at:
public/data/restaurants.json
To support static generation (generateStaticParams()), a build-safe utility reads this file using Node’s filesystem API.
- Home page lists all restaurants via
getAll - Preview page renders details for a single restaurant using route params +
getById - Static export ready with pre-rendered dynamic paths
- Open Graph metadata from
opengraph-image.jpg
- Modular UI with
CardLayout,HotelCard,OperatingHours. - Custom typed hook for structured access (
useRestaurantUtils()) - Open Graph metadata image handling
- Static JSON-backed architecture
- Responsive layout
Powered by Netlify
Static export enabled via next.config.js → output: "export"
