4 ms·
So this would mean you would have to dynamically generate your webservers configuration at the build time of your SPA? And then how are you handling routes wit
by __jonas 3y ago
So this would mean you would have to dynamically generate your webservers configuration at the build time of your SPA?
And then how are you handling routes with params inside?
In your SPA they would probably be configured like
/user/:id/post/:post
Now you would have to translate that to something the webserver config understands, probably wildcard / glob pattern / regex stuff and splice that into the web server config?
I mean it's possible, sure, but that's a lot of overhead and room for error just to deploy a simple SPA, it definitely is an opinionated approach.
- withinboredom 3y agoI don’t know. Computers are pretty damn good at transforming text. It sounds pretty simple really, it’s probably less than a week to build something rock solid.