adjorno
05/31/2025, 9:45 AMlocalhost:8080 -> to open index.html with the list of articles
localhost:8080/1234 -> to open the 1234 article
and in prod
mydomain.com/blog -> to open index.html with the list of articles
mydomain.com/blog/1234 -> to open the 1234 article
I am expecting that it should be somehow achievable without Kotlin to know about production /blog
segment.
I tried this one in index.html
but it did not help in prod.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Blog</title>
<base href="/blog/">
</head>
<body>
<div id="root"></div>
<script src="./blog.js"></script>
</body>
</html>
I am getting blog.js:1 Failed to load resource: the server responded with a status of 404 ()
Could anybody help?