You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Added requestLogger Plugin:
A custom plugin named requestLogger is added to the plugins array.
This plugin uses the configureServer method to add a middleware that logs the request method and URL.
Console Log for Requests:
Logs requests to the terminal in the format: "[timestamp] METHOD URL".
Result:
When you run the Vite dev server, it will now log all incoming HTTP requests to the console. This helps in debugging and monitoring access during development.
Description
As a developer it can be very useful to see the "hits", access requests in the vite console.
Suggested solution
When running
vite --access-logs
vite should log each hit as is typical with web servers (like apache/nginx) or web frameworks (like flask):Alternative
No response
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: