This is a Next.js app that fetches a CSV (including a Google Sheet published as CSV) and displays the raw rows in a basic dashboard.
Copy the example env file, then set SHEET_CSV_URL:
cp .env.local.example .env.localTo get a Google Sheet CSV URL:
- In Google Sheets: File → Share → Publish to web
- Choose the desired sheet/tab and select Comma-separated values (.csv)
- Copy the generated link and paste it as
SHEET_CSV_URL
Run the development server:
npm run devOpen http://localhost:3000 and click Open dashboard (or go to /dashboard).
- The dashboard calls
GET /api/data, which fetchesSHEET_CSV_URLand parses it as CSV. - Your
SHEET_CSV_URLmust be accessible from your machine/server (public or otherwise reachable in the environment you run this app).
This project uses next/font to automatically optimize and load Geist, a new font family for Vercel.
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Check out our Next.js deployment documentation for more details.