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.
Deprecation Notice:
reqinpattern.matchIn Nuxt.js 3, the
reqobject used inpattern.matchis deprecated and will be removed in a future release. Replace it with therequestobject to ensure compatibility with future versions.Affected Code:
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.