Skip to content
Source
Sign inSign up
TanStack/cli

fix(create): nest nitro rollup config #457

Closedjong-kyung(GitHub profile, opens in a new tab)wants to merge 10 commits intomain fromrefs/pull/457/headopened

Summary

Generated React Nitro/Railway projects now pass Sentry rollup externals through Nitro's config option. This avoids the type error caused by passing rollupConfig at the top level of the Nitro Vite plugin options.

Validation

  • pnpm --filter @tanstack/create build
  • pnpm --filter @tanstack/create test

Summary by CodeRabbit

  • Chores
    • Updated build configuration structure for Nitro and Railway hosting integrations to align with current plugin requirements.
    • Preserved external handling for Sentry packages during builds.
    1. coderabbitai[bot](GitHub profile, opens in a new tab)commented

      Review Change Stack

      📝 Walkthrough

      Walkthrough

      Two hosting integration snippets now nest rollupConfig inside a config object within nitro(). Both snippets preserve the @sentry/ externalization rule.

      Changes

      Nitro Configuration Examples

      Layer / File(s)Summary
      Nitro config structure update
      packages/create/src/frameworks/react/hosts/nitro/info.json, packages/create/src/frameworks/react/hosts/railway/info.json
      Both configuration snippets now place rollupConfig inside config while preserving the @sentry/ external pattern.

      Estimated code review effort: 1 (Trivial) | ~3 minutes

      🚥 Pre-merge checks | ✅ 5
      ✅ Passed checks (5 passed)
      Check nameStatusExplanation
      Description Check✅ PassedCheck skipped - CodeRabbit’s high-level summary is enabled.
      Title check✅ PassedThe title clearly and concisely describes the main change: nesting the Nitro rollup configuration.
      Docstring Coverage✅ PassedNo functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
      Linked Issues check✅ PassedCheck skipped because no linked issues were found for this pull request.
      Out of Scope Changes check✅ PassedCheck skipped because no linked issues were found for this pull request.
      ✨ 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.
    2. Note

      GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer.

    3. Thanks for catching this on the older Nitro version. The current pin accepts the existing Rollup option, so I’m closing this patch. The generated app did turn up a separate Sentry build failure, which #560 addresses.

      AI review notes: Fresh React apps with Sentry and Nitro, Railway, and Render built and typechecked with the current top-level option and the Sentry fix from #560. The generic Nitro fixture also served the demo route through the generated dev and production commands on localhost. In the same fixture, changing only the plugin call to the nested form caused TypeScript to reject config on NitroPluginConfig with Nitro 3.0.260610-beta. No deployment provider was contacted.

    4. tannerlinsley closed this

Sign in to join this conversation.