next.js/test/e2e/app-dir/app-prefetch/app/invalid-url/invalid-url.js
invalid-url.js9 lines323 B
// We need a URL that reliably fails `new URL(url, window.location)
// This only fails if `window.location` starts with `https://`:
//
//   const invalidUrl = 'http:'
//
// because `new URL('http:', 'http://localhost:3000')` works fine.
// So better to pick something that's always invalid
export const INVALID_URL = '///'
Quest for Codev2.0.0
/
SIGN IN