⚠ This page is served via a proxy. Original site: https://github.com
This service does not collect credentials or authentication data.
Skip to content

Conversation

@imrishabh18
Copy link
Member

Motivation

  • Add a project config option to let a project declare the default component to show when generating a static site so the generated site can open a chosen circuit by default.

Description

  • Add siteDefaultComponentPath to the JSON schema (types/tscircuit.config.schema.json) and to the Zod project schema (lib/project-config/project-config-schema.ts).
  • Expose siteDefaultComponentPath in the tsci config set command (cli/config/set/register.ts).
  • Plumb siteDefaultComponentPath through entrypoint discovery (cli/build/get-build-entrypoints.ts) and pass a normalized relative path into static index generation in build --site (cli/build/register.ts).
  • Extend getStaticIndexHtmlFile (lib/site/getStaticIndexHtmlFile.ts) to include window.TSCIRCUIT_DEFAULT_MAIN_COMPONENT_PATH when a default component path is provided.

Testing

  • No automated tests were executed as part of this change.

Codex Task

@imrishabh18 imrishabh18 changed the title Add siteDefaultComponentPath config and wire into build --site Add siteDefaultComponentPath config (TSC-318) Jan 16, 2026
@imrishabh18 imrishabh18 requested a review from seveibar January 16, 2026 14:22
@tscircuit tscircuit deleted a comment from github-actions bot Jan 19, 2026
@imrishabh18 imrishabh18 merged commit afeeb99 into main Jan 19, 2026
10 checks passed
@imrishabh18 imrishabh18 deleted the codex/add-sitedefaultcomponentpath-config-option branch January 19, 2026 13:34
@tscircuitbot
Copy link
Contributor


Thank you for your contribution! 🎉

PR Rating: ⭐⭐
Impact: Minor

Track your contributions and see the leaderboard at: tscircuit Contribution Tracker


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants