I think sveltekit gets it right most of the time. yes its new tech. but I think its way better than the alternatives already.
You want a frontend server that handles auth and credentials. cleans up queries to and from the main backend server.
Then you want as low-level interaction as possible in the HTML space. HTML doesnt provide everything you need. but it gets close. JS should augment HTML, the closer you stay to HTML the better.
Sveltekit goes a long way in providing this, nextjs and all the others just threw way to much tech at the front end space.
You basically want a way to turn URL's and POST requests into GET and POST responses. SPA is mostly not great and was a sidestep in a useable web.
You want a frontend server that handles auth and credentials. cleans up queries to and from the main backend server.
Then you want as low-level interaction as possible in the HTML space. HTML doesnt provide everything you need. but it gets close. JS should augment HTML, the closer you stay to HTML the better.
Sveltekit goes a long way in providing this, nextjs and all the others just threw way to much tech at the front end space.
You basically want a way to turn URL's and POST requests into GET and POST responses. SPA is mostly not great and was a sidestep in a useable web.