feat: base path support (rebased from #7625)#12333
Closed
nick-the-nuke wants to merge 6 commits intoanomalyco:devfrom
Closed
feat: base path support (rebased from #7625)#12333nick-the-nuke wants to merge 6 commits intoanomalyco:devfrom
nick-the-nuke wants to merge 6 commits intoanomalyco:devfrom
Conversation
docs: improve comment explaining double mounting for reverse proxy support
- Add rewriting functions for HTML/JS/CSS to include basePath - Update proxy handler to rewrite content when basePath is set - Add basePath to health endpoint response - Inject window.__OPENCODE_BASE_PATH__ into HTML responses - Patch window.location.origin references in JS - Rewrite asset URLs in CSS Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Contributor
|
Thanks for your contribution! This PR doesn't have a linked issue. All PRs must reference an existing issue. Please:
See CONTRIBUTING.md for details. |
Contributor
|
The following comment was made by an LLM, it may be inaccurate: Potential Duplicate Found:
The current PR #12333 is not a duplicate but rather a modernized rebase of the original work. If #7625 is still open, you may want to close it in favor of this newer version once #12333 is merged. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
--base-pathCLI option,OPENCODE_BASE_PATHenv var, andserver.basePathconfigwindow.__OPENCODE_BASE_PATH__into frontend for SolidJS Router compatibilityWhat this PR does
This is a rebase of @prokube's excellent work in #7625 onto the latest release tag (v1.2.13), resolving conflicts that arose from 275+ commits of drift.
Key features:
--base-path), env var (OPENCODE_BASE_PATH), or config (server.basePath)basePathfor clients to discover the configurationTesting
Access at
http://localhost:4096/myapp/Related
🤖 Generated with Claude Code