MaporaCustomer is a static-exported Next.js landing project designed to run on standard FTP hosting with a lightweight PHP runtime layer.
- Next.js App Router pages
- Tailwind-based UI components
- SEO metadata, OpenGraph, JSON-LD
next.config.tsusesoutput: "export"- Build output copied to
ftp-dist/ - Served under
public_htmlon shared hosting
- PHP front-controller for static route fallback
- PHP endpoint for visit analytics logs
- JSON storage for analytics (
data/visitor-analytics.json)
- User opens landing page
- Static HTML/CSS/JS served from
public_html - On cookie accept, frontend sends analytics POST to
/api/analytics/visit.php - PHP endpoint appends masked visit record in JSON storage
- Local Node development:
npm run dev - Production FTP deployment:
npm run ftp:preparethen uploadftp-dist/