Skip to content

fix(network): use relative paths to resolve cloud deployment issues#11

Merged
RussellLuo merged 1 commit intoOpenCSGs:mainfrom
jialudev:feat/html
Apr 24, 2026
Merged

fix(network): use relative paths to resolve cloud deployment issues#11
RussellLuo merged 1 commit intoOpenCSGs:mainfrom
jialudev:feat/html

Conversation

@jialudev
Copy link
Copy Markdown
Contributor

  • Removed leading slashes from fetch and EventSource URLs in app.js (e.g., changed /api/v1/... to api/v1/...).
  • Dynamically injected a <base> tag in index.html to handle base paths correctly.
  • These changes ensure that both API requests and static assets resolve reliably across different cloud deployment environments, especially when the application is not hosted at the root domain.

- Updated fetch URLs to remove leading slashes
- Adjusted base href in index.html
- Updated script and stylesheet links in index.html
@RussellLuo
Copy link
Copy Markdown
Collaborator

LGTM

@RussellLuo RussellLuo merged commit 128a653 into OpenCSGs:main Apr 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants