Skip to content

Commit

Permalink
Replace example.com with example.vercel.sh for middleware test
Browse files Browse the repository at this point in the history
  • Loading branch information
javivelasco committed Jul 21, 2022
1 parent daee459 commit 64c4dda
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/e2e/middleware-redirects/app/middleware.js
Expand Up @@ -10,7 +10,7 @@ export async function middleware(request) {

if (url.pathname === '/old-home') {
if (url.searchParams.get('override') === 'external') {
return Response.redirect('https://example.com')
return Response.redirect('https://example.vercel.sh')
} else {
url.pathname = '/new-home'
return Response.redirect(url)
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/middleware-redirects/test/index.test.ts
Expand Up @@ -68,7 +68,7 @@ describe('Middleware Redirect', () => {
)

expect(res.headers.get('x-nextjs-redirect')).toEqual(
'https://example.com/'
'https://example.vercel.sh/'
)
expect(res.headers.get('location')).toEqual(null)

Expand Down

0 comments on commit 64c4dda

Please sign in to comment.