Consider migrating from nextjs to vitejs (or similar)
Description
Following issues when doing https://gitlab.developers.cam.ac.uk/uis/devops/iam/activate-account/infrastructure/-/issues/23 with nextjs not supporting relative urls and having to hardcode the hosted path at build time (and pass it at runtime too), we should consider migrating to another framework.
Vite suggested as it supports relative urls.