If nothing else, that posts mention of https://www.keycloakify.dev/ is very handy - looks like a great alternative to the standard approach!
Currently it officially supports only apps made with create-react-app, but there is a vite branch in development and personally we use it with vite since a while.