Install dependencies:
pnpm install
Run the NextJS dev server:
pnpm dev
Go to http://localhost:3000
API routes are served by NextJS HTTP router based on handlers' file paths:
Fetches past SpaceX launches
Fetches upcoming SpaceX launches
Fetches latest SpaceX launch
Fetches next SpaceX launch
It displays the past and upcoming launches from the API and has 2 variants controlled by Google Optimize A/B test experiment:
Just the simple display of launches lists.
Besides having the same lists, it allows you to filter the launches by name or some term mentioned in the details text and I've also changed the page title to a slightly blueish color using the Google Optimize editor just to make sure it isn't the variant A.