Hello, I am new to Compose Web development and web...
# compose-web
a
Hello, I am new to Compose Web development and web development in general. I am trying to proxy dev.to blog to my domain and render it in a custom way by Web Compose. How can I get the setup so locally I can work with the url
Copy code
localhost:8080 -> to open index.html with the list of articles
localhost:8080/1234 -> to open the 1234 article
and in prod
Copy code
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.
Copy code
<!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?