Open MastalerzKamil opened 2 years ago
Middleware is not supported with Lambda and Lambda@Edge, as mentioned both in the top of README and in this issue: https://github.com/milliHQ/terraform-aws-next-js/issues/273#issuecomment-1021486976 I would love for middleware support myself, but this seems to be a limitation with AWS, according to both the author of this projects and other projects (serverless-nextjs).
This, coupled with lack of support for redirects in getServerSideProps, means i am currently unable to use this project for any real-world usage.
Does the
tf-next 1.0.0 canary5
supports middleware fromNext 12.2
? It has been changed because from developer perspective, now we are using filemiddleware.ts
at the root of the app instead_middleware.ts
in pages.After my investigation I noticed that
tf-next 1.0.0 canary 5
has a trouble it while using commandtf-next build
. The error that appears is the following.I have used before
yarn build
and everything is fine. Does anyone has a tips how to workaround it. Please fix it because it seems to be an issue on library site