twitter-clone icon indicating copy to clipboard operation
twitter-clone copied to clipboard

Deprecation Notice: req in pattern.match

Open LidoHon opened this issue 1 year ago • 0 comments

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.

LidoHon avatar Dec 31 '24 08:12 LidoHon