Skip to content

Missing polyfill for middleware: URLPattern #481

@mbaquerizo

Description

@mbaquerizo

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions