Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
registry=https://registry-bridge.viteplus.dev/
32 changes: 32 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,37 @@
Welcome to your new TanStack Start app!

# Vite+ SSR fix preview

This branch uses the [preview build from Vite+ PR #2617](https://github.com/voidzero-dev/vite-plus/pull/2617#issuecomment-5560311220).
`vite-plus`, the `vite` alias, and the `vite` override use the same commit version,
`0.0.0-commit.15cc57f55e221b26ca82e7475ce90d22af8b5cd0`.
The `.npmrc` file selects the registry that serves this preview.

The original lockfile installs Vite+ `0.1.18`, which returns HTTP 404 for both `/` and `/about`.
With the preview, both routes return HTTP 200 and include their page content in the server response.
The application dependencies, including TanStack Start, retain their original locked versions.
The old `@voidzero-dev/vite-plus-test` alias is removed because the preview provides tests through `vite-plus/test`.

`vp test` starts a development server and checks the HTTP status and server-rendered content of both routes.
GitHub Actions runs a frozen install, this test, and the production build on Linux, macOS, and Windows for each pull request.
Compare [the baseline PR](https://github.com/why-reproductions-are-required/vite-plus-tanstack-start-ssr-broken/pull/2)
with [the preview fix](https://github.com/why-reproductions-are-required/vite-plus-tanstack-start-ssr-broken/pull/1).
Both use the same workflow and SSR test; the baseline keeps the original dependencies.

Install the locked dependencies and start the server:

```bash
vp install --frozen-lockfile
vp dev --host 127.0.0.1 --port 3000
```

In another terminal, check the server-rendered content:

```bash
curl --fail --silent http://127.0.0.1:3000/ | grep -F 'Start simple, ship quickly.'
curl --fail --silent http://127.0.0.1:3000/about | grep -F 'A small starter with room to grow.'
```

# Getting Started

To run this application:
Expand Down
Loading