next-saas-stripe-starter
next-saas-stripe-starter copied to clipboard
Update Middleware for Edge Environment Compatibility
Description
Issue: The Vercel build was failing due to incompatibility with the Edge environment in the current middleware implementation. The issue was identified when deploying the application, resulting in runtime errors specific to Edge functions.
Solution: Updated the middleware code to ensure compatibility with Vercel's Edge environment. This includes modifying the API routes and request handling logic to align with Edge function requirements, ensuring seamless deployment and execution.
Changes Made
- Refactored middleware.js to support Edge environment.
- Updated API route handlers to use Edge-compliant syntax.
Someone is attempting to deploy a commit to the mickasmt's projects Team on Vercel.
A member of the Team first needs to authorize it.