serverless-next.js icon indicating copy to clipboard operation
serverless-next.js copied to clipboard

Unsupported/partially supported features as of Next.js 10.2.0

Open jvarho opened this issue 4 years ago • 4 comments
trafficstars

Here's a list of unsupported features I've gathered so far while working through refactoring:

  • [ ] Custom headers, redirects and rewrites are missing the new has matching from 10.2: https://nextjs.org/blog/next-10-2#header-cookie-and-query-matching-for-rewrites-and-redirects
  • [ ] Rewrites missing the new object format from 10.1 #1003
  • [x] Static 500 page is unsupported: https://nextjs.org/docs/advanced-features/custom-error-page#500-page
  • [ ] Locale domains: https://nextjs.org/docs/advanced-features/i18n-routing#domain-routing
  • [x] Locale detection disabling: https://nextjs.org/docs/advanced-features/i18n-routing#disabling-automatic-locale-detection (indirectly possible by not forwarding accept-language)
  • [ ] Measuring performance #762
  • [ ] Longterm asset caching with webpack 5: https://nextjs.org/blog/next-10-2#webpack-5 (browser caches work, but invalidated in cloudfront)

Most of these I don't personally have a use case for, so have no immediate plans to implement. Static 500 is something I might do.

jvarho avatar May 25 '21 18:05 jvarho

Static 500 pages should be supported in: https://github.com/serverless-nextjs/serverless-next.js/pull/1135

dphang avatar May 29 '21 06:05 dphang

Hi, @dphang @jvarho

I do have a use case for this enhancement "Customer headers, redirects and rewrites are missing the new has matching from 10.2" and here is the issue that i created https://github.com/serverless-nextjs/serverless-next.js/issues/1297

If there any thing, i can add or modify to provide more details, i will be happy to :)

Regards, Seif

seifeddinebesbes avatar Jun 25 '21 12:06 seifeddinebesbes

Any plan to support the new has matching soon?

mathvbarone avatar Aug 27 '21 13:08 mathvbarone

First of all, awesome library! I want to implement multi tenancy and I am dependent on middleware in NextJS 12 (best solution) or 'has' and the new rewrite object structure from 10.1. What is the status on:

  • Custom headers, redirects and rewrites are missing the new has matching from 10.2
  • Rewrites missing the new object format from 10.1

ghost avatar Feb 10 '22 15:02 ghost