From 4ab34c8f0f9b4e1f636a26012f2a75863b471c51 Mon Sep 17 00:00:00 2001 From: yyamashita Date: Fri, 15 May 2026 00:22:37 +0900 Subject: Fix build: merge detail/update into existing API routes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Parametric resource routes cause a React Router prod build error (commonjs--resolver server-only module conflict). Merged the GET?id= and PATCH logic into the existing api-bands.tsx and api-artists.tsx instead of creating separate :uuid route files. - GET /api/bands?id=UUID → band detail with links/members - PATCH /api/bands → partial update (append_links, append_members) - Same pattern for /api/artists Co-Authored-By: Claude Sonnet 4.6 --- app/routes.ts | 2 -- 1 file changed, 2 deletions(-) (limited to 'app/routes.ts') diff --git a/app/routes.ts b/app/routes.ts index 518492f..0a2c028 100644 --- a/app/routes.ts +++ b/app/routes.ts @@ -3,9 +3,7 @@ import { type RouteConfig, index, route } from "@react-router/dev/routes"; export default [ index("routes/home.tsx"), route("/api/bands", "routes/api-bands.tsx"), - route("/api/bands/:uuid", "routes/api-band-detail.tsx"), route("/api/artists", "routes/api-artists.tsx"), - route("/api/artists/:uuid", "routes/api-artist-detail.tsx"), route("/api/export", "routes/api-export.tsx"), route("/api/import", "routes/api-import.tsx"), route("/bands", "routes/band-index.tsx"), -- cgit v1.2.3