Support of base URL does not work as expected. #3102
Replies: 4 comments 1 reply
-
Thanks for posting a discussion about homepage here on GitHub. Homepage now uses a fancy new AI tool thanks to our friends at Glime, so the answer below is the AI bot's attempt to answer your question. If you feel it's sufficient you can mark the answer and close this post, otherwise feel free to leave it open of course! Thanks for using Homepage! ❤️ Based on the context provided, it seems you are trying to set up the homepage application to work behind a subpath using Docker and are encountering issues with the The From the information provided, it seems you have attempted to modify the Next.js configuration directly by adding a The images you've linked to show that the resources are not being loaded with the correct base path, which suggests that the application's static assets and API requests are not being properly prefixed. To resolve this issue, you should ensure that:
If the application's server-side logic does not automatically handle the Since you are building a customized version of the application, you may also need to review the server-side code to ensure that it is aware of the If you continue to experience issues, you may want to reach out to the homepage community for support or consult the documentation for more detailed guidance on configuring the application for subpath deployment. Unfortunately, without access to the actual repository and codebase, I cannot provide a more specific solution. Please ensure that you are following the latest documentation and consider opening an issue in the homepage repository if you believe there is a bug or if the documentation is lacking in this area. This comment was generated by Glime. |
Beta Was this translation helpful? Give feedback.
-
Having the same issue with traefik |
Beta Was this translation helpful? Give feedback.
-
I'm very happy to find people with the same problem as my installation. I've spent a lot of time on it, but I still don't have a solution to display the page under .../homepage.
|
Beta Was this translation helpful? Give feedback.
-
Description
Hello,
I try to setup homepage behind a subpath and for that I need to configure a base URL. I found into the documentation and Github issues that there are two options about that:
base
andstartURL
. However, any of thoses impact my configuration.I found this discussion but the solution does not change.
I can see that the attribute
base
is correctly changed in my HTML page but resources URL are not impacted.Also, I tried to edit the next configuration and build a new customized image:
When I add the base url, it's like this
and the result is here
homepage version
v0.8.9
Installation method
Docker
Configuration
Container Logs
No response
Browser Logs
No response
Troubleshooting
All API requests returns a 404 and it's normal because the frontend should prefix the request by the prefix (included in
base
orstartUrl
.That's said, I reached out this state because I build a customized version with the prefix in the next config
Beta Was this translation helpful? Give feedback.
All reactions