Serve jekyll site inside code-server container and base url is not proxied #6498
Unanswered
CoderSherlock
asked this question in
Q&A
Replies: 1 comment
-
It will depend on the static generator. But some general thoughts:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi folks,
I tried to serve a static website inside code-server container. When clicking the open in browser button, it redirects to
{code-server-ip}/proxy/4000
. However, only the index.html is available, all other links/css/images are based on the wrong baseurl, such as{code-server-ip}/about.html}
(expect{code-server-ip}/proxy/4000/about.html
I guess).Do we have a good way to proxy all resources? Is there an existing solution to this case?
Ref: similar question from another static website generator Code-server proxy and properly setting up hugo server.
Beta Was this translation helpful? Give feedback.
All reactions