Skip to content

fix: update deployment paths for custom domain#77

Merged
Zahnentferner merged 2 commits into
AOSSIE-Org:mainfrom
Ri1tik:fix/custom-domain-paths
Jun 15, 2026
Merged

fix: update deployment paths for custom domain#77
Zahnentferner merged 2 commits into
AOSSIE-Org:mainfrom
Ri1tik:fix/custom-domain-paths

Conversation

@Ri1tik

@Ri1tik Ri1tik commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

Addressed Issues:

Fixes #

Screenshots/Recordings:

Additional Notes:

Root cause:
-Vite was still building assets using the old GitHub Pages path (/OrgExplorer/).
-React Router was also using basename="/OrgExplorer" in production.

After updating:
-vite.config.js: base: "/"
-BrowserRouter: removed the /OrgExplorer basename
-Updated domain-specific metadata URLs in index.html

Verification:
-npm run build completes successfully.
-npm run preview now renders the application correctly.

Checklist

  • My code follows the project's code style and conventions
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings or errors
  • I have joined the Discord server and I will share a link to this PR with the project maintainers there
  • I have read the Contributing Guidelines

⚠️ AI Notice - Important!

We encourage contributors to use AI tools responsibly when creating Pull Requests. While AI can be a valuable aid, it is essential to ensure that your contributions meet the task requirements, build successfully, include relevant tests, and pass all linters. Submissions that do not meet these standards may be closed without warning to maintain the quality and integrity of the project. Please take the time to understand the changes you are proposing and their impact.

Summary by CodeRabbit

  • Chores
    • Migrated all domain references and site metadata, including canonical URLs, Open Graph tags, favicons, and structured data, to the new official domain
    • Updated application routing and build configuration to ensure consistent URL handling across all deployment environments

@Ri1tik Ri1tik added the gsoc GSoC students label Jun 15, 2026
@coderabbitai

coderabbitai Bot commented Jun 15, 2026

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

@Ri1tik, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 50 minutes and 58 seconds. Learn how PR review limits work.

Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file).

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 4d61ec58-ce70-4ac5-839f-34c97c66ae78

📥 Commits

Reviewing files that changed from the base of the PR and between 5b61304 and 3dbe5bf.

📒 Files selected for processing (2)
  • public/robots.txt
  • public/sitemap.xml

Walkthrough

The PR migrates the project from its GitHub Pages hosting (aossie-org.github.io/OrgExplorer/) to a custom domain (orgexplorer.aossie.org/). The Vite base option and BrowserRouter basename are changed from environment-conditional /OrgExplorer/ subpath values to a fixed /. All metadata URLs in index.html (canonical, Open Graph, Twitter, JSON-LD) are updated to the new domain.

Changes

Custom Domain Migration

Layer / File(s) Summary
Vite base and BrowserRouter basename simplification
vite.config.js, src/main.jsx
vite.config.js drops the production-only /OrgExplorer/ base in favour of a constant "/". BrowserRouter basename is similarly fixed to "/", removing the import.meta.env.PROD conditional.
index.html metadata URL updates
index.html
Canonical link, favicon/apple-touch-icon hrefs, og:url, og:image, Twitter image meta, and JSON-LD url/image fields are all changed from https://aossie-org.github.io/OrgExplorer/ to https://orgexplorer.aossie.org/.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Possibly related PRs

  • AOSSIE-Org/OrgExplorer#66: Directly overlaps — previously adjusted the Vite base option and BrowserRouter basename for the /OrgExplorer/ subpath that this PR removes.
  • AOSSIE-Org/OrgExplorer#73: Also modifies index.html canonical/OG/Twitter/JSON-LD URLs and social metadata to target the correct site domain.
  • AOSSIE-Org/OrgExplorer#2: Introduced the original index.html and Vite base configuration that this PR is now updating.

Suggested labels

Typescript Lang

Suggested reviewers

  • bhavik-mangla
  • Zahnentferner

Poem

🐇 Hop, hop, no more subpath maze,
The rabbit found a shorter trail!
orgexplorer.aossie.org now gleams,
No /OrgExplorer/ in our dreams.
Just / — clean, simple, and bright! ✨

🚥 Pre-merge checks | ✅ 4
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'fix: update deployment paths for custom domain' directly and clearly summarizes the main change—updating build and routing configuration to align with a custom domain instead of GitHub Pages paths.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions github-actions Bot added no-issue-linked PR has no linked issue configuration Config file changes frontend Frontend changes javascript JavaScript/TypeScript changes size/S 11-50 lines changed external-contributor External contributor and removed size/S 11-50 lines changed labels Jun 15, 2026

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@index.html`:
- Line 30: The canonical URL in index.html has been updated to
https://orgexplorer.aossie.org/, but this change must be synchronized with the
crawler discovery files. Update public/sitemap.xml to replace any references to
the old /OrgExplorer/ path with the new canonical domain
https://orgexplorer.aossie.org/, and similarly update public/robots.txt to point
crawlers to the correct domain instead of the old path. This ensures search
engines index the correct URLs and maintain proper deep-link discovery after
deployment.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 3625261d-ac8d-49a6-a1e3-753b4583ac3b

📥 Commits

Reviewing files that changed from the base of the PR and between 33fd4fc and 5b61304.

📒 Files selected for processing (3)
  • index.html
  • src/main.jsx
  • vite.config.js

Comment thread index.html
@github-actions github-actions Bot added documentation Documentation updates size/S 11-50 lines changed and removed size/S 11-50 lines changed labels Jun 15, 2026
@Zahnentferner Zahnentferner merged commit fe78a19 into AOSSIE-Org:main Jun 15, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

configuration Config file changes documentation Documentation updates external-contributor External contributor frontend Frontend changes gsoc GSoC students javascript JavaScript/TypeScript changes no-issue-linked PR has no linked issue size/S 11-50 lines changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants