메인페이지 수정
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
"use client";
|
||||
import { Button } from "@common/components";
|
||||
import Link from "next/link";
|
||||
import { redirect } from "next/navigation";
|
||||
|
||||
export default function Home() {
|
||||
redirect("/map");
|
||||
//redirect("/map");
|
||||
|
||||
/*
|
||||
return (
|
||||
<div>
|
||||
<div>
|
||||
@@ -39,12 +41,11 @@ export default function Home() {
|
||||
<Link href={"/ii/result"}>
|
||||
<Button>침입수 분석 결과</Button>
|
||||
</Link>
|
||||
<Link href={"/ii/rdii_result"}>
|
||||
<Link href={"/ii/rdiiResult"}>
|
||||
<Button>RDII 분석 결과</Button>
|
||||
</Link>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
*/
|
||||
}
|
||||
|
||||
@@ -40,7 +40,7 @@ export function middleware(req: NextRequest) {
|
||||
return NextResponse.rewrite(new URL(newUrl));
|
||||
}
|
||||
|
||||
if (pathname.startsWith("/sewerage-service/api/v1/map/geometry")) {
|
||||
if (pathname.startsWith("/sewerage-service")) {
|
||||
const queryParams = searchParams.toString();
|
||||
const newUrl = `${SEWERAGE_API_URL}${pathname.replace("/sewerage-service/api", "")}${queryParams ? `?${queryParams}` : ""
|
||||
}`;
|
||||
|
||||
Reference in New Issue
Block a user