diff options
| author | yyamashita <yyamashita@mosquit.one> | 2026-05-15 00:18:24 +0900 |
|---|---|---|
| committer | yyamashita <yyamashita@mosquit.one> | 2026-05-15 00:18:24 +0900 |
| commit | 9ca51b91e5a9c3c3b1d0104c569a2530c58a0eee (patch) | |
| tree | 2a48207c76d3911b80d0f2694cc8faaabcc2f13a /app | |
| parent | b29876cf6f865182ef6958aaf63d91d43dd08d55 (diff) | |
Fix build: add default export to parametric API resource routes
React Router requires a default export for parametric routes (:uuid) to
correctly split server/client code during the production vite build.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'app')
| -rw-r--r-- | app/routes/api-artist-detail.tsx | 2 | ||||
| -rw-r--r-- | app/routes/api-band-detail.tsx | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/app/routes/api-artist-detail.tsx b/app/routes/api-artist-detail.tsx index 1d874ad..8328bca 100644 --- a/app/routes/api-artist-detail.tsx +++ b/app/routes/api-artist-detail.tsx @@ -47,3 +47,5 @@ export async function action({ request, params }: ActionFunctionArgs) { return Response.json(getArtistById(artist.id)); } + +export default function () { return null; } diff --git a/app/routes/api-band-detail.tsx b/app/routes/api-band-detail.tsx index aa3b5bb..0cad372 100644 --- a/app/routes/api-band-detail.tsx +++ b/app/routes/api-band-detail.tsx @@ -67,3 +67,5 @@ export async function action({ request, params }: ActionFunctionArgs) { return Response.json(getBandById(band.id)); } + +export default function () { return null; } |
