feat(cli): add react router support with alchemy (#542)

This commit is contained in:
Aman Varshney
2025-08-26 13:55:01 +05:30
committed by GitHub
parent 5fe7a73e86
commit 37c8e7cdf3
20 changed files with 163 additions and 276 deletions

View File

@@ -1005,7 +1005,7 @@ const analyzeStackCompatibility = (stack: StackState): CompatibilityResult => {
if (isAlchemyWebDeploy || isAlchemyServerDeploy) {
const incompatibleFrontends = nextStack.webFrontend.filter(
(f) => f === "next" || f === "react-router",
(f) => f === "next",
);
if (incompatibleFrontends.length > 0) {
@@ -1029,9 +1029,7 @@ const analyzeStackCompatibility = (stack: StackState): CompatibilityResult => {
notes.webDeploy.hasIssue = true;
notes.serverDeploy.hasIssue = true;
nextStack.webFrontend = nextStack.webFrontend.filter(
(f) => f !== "next" && f !== "react-router",
);
nextStack.webFrontend = nextStack.webFrontend.filter((f) => f !== "next");
if (nextStack.webFrontend.length === 0) {
nextStack.webFrontend = ["tanstack-router"];
@@ -1632,10 +1630,7 @@ const StackBuilder = () => {
const { adjustedStack } = analyzeStackCompatibility(simulatedStack);
const finalStack = adjustedStack ?? simulatedStack;
if (
category === "webFrontend" &&
(optionId === "next" || optionId === "react-router")
) {
if (category === "webFrontend" && optionId === "next") {
const isAlchemyWebDeploy = finalStack.webDeploy === "alchemy";
const isAlchemyServerDeploy = finalStack.serverDeploy === "alchemy";