mickasmt / next-saas-stripe-starter

Open-source SaaS Starter with User Roles & Admin Panel. Built using Next.js 14, Prisma, Neon, Auth.js v5, Resend, React Email, Shadcn/ui, Stripe, Server Actions.
https://next-saas-stripe-starter.vercel.app
MIT License
1.95k stars 354 forks source link

Update Middleware for Edge Environment Compatibility #55

Open hisachin opened 3 months ago

hisachin commented 3 months ago

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

vercel[bot] commented 3 months ago

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.