aws-amplify / amplify-hosting

AWS Amplify Hosting provides a Git-based workflow for deploying and hosting fullstack serverless web applications.
https://aws.amazon.com/amplify/hosting/
Apache License 2.0
460 stars 116 forks source link

Next.js edge middleware support #3662

Open ArianHamdi opened 1 year ago

ArianHamdi commented 1 year ago

Before opening, please confirm:

App Id

d3akk1nl18rszx

AWS Region

us-east-1

Amplify Hosting feature

Not Applicable

Question

My question is whether AWS Amplify currently supports Next.js edge middleware? Since middleware plays a crucial role in handling requests before they reach the application's paths. To ensure optimal performance, it is imperative that this middleware is deployed on the edge, effectively reducing Time To First Byte (TTFB) impacts. This is crucial to avoid any potential delays caused by cold boots on the middleware.

Per documentations (Unsupported features): Edge API Routes (Edge middleware is not supported)

But the edge middleware is very crucial for optimal performance.

github-actions[bot] commented 1 year ago

This has been identified as a feature request. If this feature is important to you, we strongly encourage you to give a 👍 reaction on the request. This helps us prioritize new features most important to you. Thank you!