} rewrites urls outside of the basePath. Please use a destination that starts with \`http://\` or \`https://\` https://nextjs.org/docs/messages/invalid-external-rewrite`
} rewrites urls outside of the basePath. Please use a destination that starts with \`http://\`, \`https://\`, \`ws://\`, or \`wss://\` https://nextjs.org/docs/messages/invalid-external-rewrite`
)
)
numInvalidRoutes++
numInvalidRoutes++
continue
continue
...
@@ -305,10 +307,10 @@ export function checkCustomRoutes(
...
@@ -305,10 +307,10 @@ export function checkCustomRoutes(
invalidParts.push('`destination` is not a string')
invalidParts.push('`destination` is not a string')