Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: deployment in subpath by setting BASE_URL #80

Merged
merged 8 commits into from
Feb 7, 2025

Conversation

srijitcoder
Copy link
Member

@srijitcoder srijitcoder commented Feb 7, 2025

Implemented changes

  • Introduced globalThis.basePath inside config.js to control the base path of git clerk so that it can easily be worked on any root level from / to /some-path/

Example to set globalThis.basePath in config.js -

globalThis.basePath = "/";
globalThis.basePath = "/git-clerk/";
globalThis.basePath = "/some-path/one/two/";

@srijitcoder srijitcoder marked this pull request as ready for review February 7, 2025 10:58
@srijitcoder srijitcoder added the bug Something isn't working label Feb 7, 2025
@silvester-pari silvester-pari changed the title Fix: BASE_URL issue in docker fix: deployment in subpath by setting BASE_URL Feb 7, 2025
@silvester-pari silvester-pari merged commit 06bd9c3 into main Feb 7, 2025
1 check passed
@silvester-pari silvester-pari deleted the fix/base-url-issue-in-docker branch February 7, 2025 14:44
@silvester-pari silvester-pari linked an issue Feb 10, 2025 that may be closed by this pull request
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Running git-clerk on a sub-path
2 participants