A React application that allows you to fetch and view deployment logs and error logs from your Vercel projects using the Vercel API.
- 🔐 Secure API token authentication
- 📁 Browse your Vercel projects
- 🚀 View deployment history
- 📋 Fetch deployment logs
- ❌ Filter and view error logs
- 🔨 View build logs
- 📱 Responsive design
- Node.js 14 or higher
- npm or yarn
- A Vercel account and API token
-
Clone this repository
-
Install dependencies:
npm install
-
Start the development server:
npm start
-
Open http://localhost:3000 to view it in the browser.
- Go to Vercel Dashboard
- Navigate to Settings → Tokens
- Create a new token with appropriate permissions
- Copy the token and paste it into the application
- Enter API Token: Paste your Vercel API token in the configuration section
- Team ID (Optional): If you're part of a team, enter your team ID
- Fetch Projects: Click "Fetch Projects" to load your available projects
- Select Project: Choose a project from the dropdown
- Fetch Deployments: Click "Fetch Deployments" to load deployment history
- Select Deployment: Choose a specific deployment to view its logs
- View Logs: Browse through different types of logs using the tabs:
- Deployment Logs: General deployment information
- Error Logs: Filtered error messages and stack traces
- Build Logs: Build process logs and compilation messages
This application uses the following Vercel API endpoints:
GET /v9/projects
- List projectsGET /v6/deployments
- List deployments for a projectGET /v2/deployments/{id}/events
- Get deployment logsGET /v13/deployments/{id}
- Get deployment details
src/
├── components/
│ ├── VercelLogs.js # Main dashboard component
│ └── VercelLogs.css # Styling for the dashboard
├── services/
│ └── vercelApi.js # Vercel API service class
├── App.js # Main app component
├── App.css # Global styles
└── index.js # App entry point
npm start
- Runs the app in development modenpm run build
- Builds the app for productionnpm test
- Launches the test runnernpm run eject
- Ejects from Create React App (one-way operation)
- Never commit your API tokens to version control
- Use environment variables for sensitive data in production
- The API token is stored only in component state and is not persisted
- "Failed to fetch projects": Check that your API token is valid and has the correct permissions
- "No deployments found": Make sure the selected project has deployments
- "No logs found": Some deployments may not have logs depending on their state
Vercel API has rate limits. If you encounter rate limiting:
- Wait a few minutes before making more requests
- Reduce the number of concurrent requests
- Consider caching responses for frequently accessed data
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add some amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
This project is licensed under the MIT License.