How aanwidiant/sukses-mandiri-alka works
Project type and purpose
• This is a Next.js application (App Router) built with create-next-app.
• It’s primarily a marketing/content site with pages (Home, About, Blogs, Products, Contact) and dynamic routes for individual blog and product detail pages.
• It does Static Site Generation (SSG) / Server-Side Rendering (SSR) using JSON files in src/data and serves static assets from public/.
File structure
• Top-level config: next.config.ts, tailwind.config.ts, tsconfig.json, ESLint (eslint.config.mjs).
• Public assets: public/image/..., public/robots.txt, public/sitemap.xml.
• App code: src/app/ follows Next.js App Router conventions:
• layout.tsx for the root layout and per-route layouts
• Dynamic segments under blogs/[slug] and products/[slug].
• Data sources: src/data/dataBlog.json, dataProduct.json, dataTeam.json. These feed the SSG/SSR functions in the pages.
README for additional insights
• Confirms Next.js defaults (automatic font optimization, Vercel deployment).
• No custom backend or external API endpoints—content is loaded from local JSON.
Elements
• Clear labels: “Client Browser,” “Next.js App Router,” “Layouts & Pages,” “Components,” “Data JSON,” “Static Assets.”