4 ms·
You only have to serve a 200 and the index for valid routes to have frontend routing working. The complaint is serving a 200 for invalid routes, which breaks a
by shkkmo 3y ago
You only have to serve a 200 and the index for valid routes to have frontend routing working.
The complaint is serving a 200 for invalid routes, which breaks all kinds of things and violates web standards.
- egeozcan 3y agoIndeed, for a cost-effective approach with a static host, why not generate placeholder HTML files for all valid routes at compile time? Alternatively, using Astro or a similar tool would be a wise choice :)
- antihero 3y agoThis isn’t really feasible, think about how dynamic routes can be? Can you generate a route for every ID of a thing?