Initial commit
This commit is contained in:
commit
78f8d225ee
21173 changed files with 2907774 additions and 0 deletions
28
node_modules/next/dist/esm/server/web/error.js
generated
vendored
Normal file
28
node_modules/next/dist/esm/server/web/error.js
generated
vendored
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
export class PageSignatureError extends Error {
|
||||
constructor({ page }){
|
||||
super(`The middleware "${page}" accepts an async API directly with the form:
|
||||
|
||||
export function middleware(request, event) {
|
||||
return NextResponse.redirect('/new-location')
|
||||
}
|
||||
|
||||
Read more: https://nextjs.org/docs/messages/middleware-new-signature
|
||||
`);
|
||||
}
|
||||
}
|
||||
export class RemovedPageError extends Error {
|
||||
constructor(){
|
||||
super(`The request.page has been deprecated in favour of \`URLPattern\`.
|
||||
Read more: https://nextjs.org/docs/messages/middleware-request-page
|
||||
`);
|
||||
}
|
||||
}
|
||||
export class RemovedUAError extends Error {
|
||||
constructor(){
|
||||
super(`The request.ua has been removed in favour of \`userAgent\` function.
|
||||
Read more: https://nextjs.org/docs/messages/middleware-parse-user-agent
|
||||
`);
|
||||
}
|
||||
}
|
||||
|
||||
//# sourceMappingURL=error.js.map
|
||||
Loading…
Add table
Add a link
Reference in a new issue