Skip to content

Commit 3e1e9e0

Browse files
yamcodesautofix-ci[bot]pullfrog[bot]
authored
fix(www): reverse proxy /tanstack/* to v1 preview during alpha (#1812)
### Summary This PR adds a reverse proxy rewrite in `apps/www/next.config.ts` routing `/tanstack/:path*` requests to `https://arkenv-v1.vercel.app/tanstack/:path*`. ### Why The official TanStack CLI add-on for ArkEnv is deployed on the `v1` branch at `https://arkenv-v1.vercel.app/tanstack/info.json`. Because production docs (`https://arkenv.js.org`) are deployed from `main` (which flows from `dev`), this rewrite allows `https://arkenv.js.org/tanstack/info.json` to resolve immediately during the alpha prerelease phase without URL rot or waiting for the full v1 merge. Once merged to `dev`, this change can be synced directly to `main` via `sync-main.yml` (Category 1 doc/infra sync). **Blocks / Relates to:** #1811 (feat: add official TanStack CLI add-on for ArkEnv) --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: pullfrog[bot] <226033991+pullfrog[bot]@users.noreply.github.com>
1 parent a3a779a commit 3e1e9e0

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

apps/www/next.config.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,15 @@ const config = {
7979
source: `${POSTHOG_PROXY_PREFIX}/:path*`,
8080
destination: `${POSTHOG_API_ENDPOINT}/:path*`,
8181
},
82+
/**
83+
* Proxy TanStack CLI add-on to v1 preview during alpha.
84+
* Keeps v1 as the single source of truth for template updates.
85+
* TODO(v1-ga): Remove this rewrite once v1 is merged into dev/main.
86+
*/
87+
{
88+
source: "/tanstack/:path*",
89+
destination: "https://arkenv-v1.vercel.app/tanstack/:path*",
90+
},
8291
];
8392
},
8493
// This is required to support PostHog trailing slash API requests

0 commit comments

Comments
 (0)