This app was built to test features of Next.js on different hosting providers. The app uses the Pages based architecture of Next.js
The following features of Next.js are tested:
- getStaticProps()
- getServerSideProps()
- Image Optimization
- Incremental Static Regeneration (ISR)
- On Demand ISR
- API Routes
- Middleware Redirects
- Edge Runtime
- Dynamic Routes
- next.config.js Redirects
- Sub-Path Internationalization
- Sitecore JSS Image Optimization
- Vercel
- Azure Static Web Apps
- Azure App Services (Linux Node)
- AWS Amplify
- Cloudflare Pages
- Virtual Private Server (VPS)
- Netlify
The application has a series of Cypress E2E tests that are used to automatically test all the features listed above. To run the tests peform the following steps.
- Change the
url
variable in thecypress.config.ts
file to point at the URL you want to test - Run
npm run cypress:open
to open the cypress test console - Select "E2E Tests"
- Choose Browser - I choose Chrome
- Run all the specs and see what passes or fails