Skip to content

Deprecation Notice: req in pattern.match #9

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
LidoHon opened this issue Dec 31, 2024 · 0 comments
Open

Deprecation Notice: req in pattern.match #9

LidoHon opened this issue Dec 31, 2024 · 0 comments

Comments

@LidoHon
Copy link

LidoHon commented Dec 31, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant