open-next
open-next copied to clipboard
Missing polyfill for middleware: URLPattern
next.js implements URLPattern
for edge runtime middleware. After upgrading sst, and by extension open-next@3, my middleware broke because URLPattern is not a constructor
.
See https://discord.com/channels/983865673656705025/1027265626085019769/1265740389428760636
mdn reference: https://developer.mozilla.org/en-US/docs/Web/API/URLPattern
If I need to provide a reproduction, let me know. Tested and working with https://www.npmjs.com/package/urlpattern-polyfill for now as a workaround.