Skip to content

Deprecation Notice: req in pattern.match #9

@LidoHon

Description

@LidoHon

Deprecation Notice: req in pattern.match

In Nuxt.js 3, the req object used in pattern.match is deprecated and will be removed in a future release. Replace it with the request object to ensure compatibility with future versions.

Affected Code:

pattern.match(event.req.url);
#### updated code 
pattern.match(event.request.url);

Reason for Change:
This update aligns with the standard Web Request API and supports the modernization and improvement of the Nuxt.js framework.

Recommended Action:
Replace all instances of event.req.url with event.request.url in your code to avoid potential issues and maintain compatibility with upcoming versions.

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