We should add tests for Next.js middleware and edge routes. E2E tests would be fitting since we need to actually verify the build process.