We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e95c4b0 commit fc9d754Copy full SHA for fc9d754
apps/web/middleware.ts
@@ -18,7 +18,10 @@ export default async function middleware(request: Request) {
18
);
19
20
if (!response.ok) {
21
- return Response.redirect(url.origin, 302);
+ // API 응답이 404인 경우 클라이언트 라우팅으로 처리
22
+ return new Response(null, {
23
+ status: 200,
24
+ });
25
}
26
27
const data = await response.json();
@@ -68,7 +71,9 @@ export default async function middleware(request: Request) {
68
71
},
69
72
});
70
73
} catch (error) {
- // 에러 발생 시 기본 페이지로 리다이렉트
74
+ // 에러 발생 시 클라이언트 라우팅으로 처리
75
76
77
78
79
0 commit comments