build fixes
This commit is contained in:
parent
656ad5fe7e
commit
7d6f7c682c
8 changed files with 35 additions and 14 deletions
|
|
@ -1,5 +1,7 @@
|
|||
// app/settings/co2-galvo/[id]/page.tsx
|
||||
import { redirect } from "next/navigation";
|
||||
export default function Page({ params }: { params: { id: string } }) {
|
||||
redirect(`/portal/laser-settings?t=co2-galvo&id=${encodeURIComponent(params.id)}`);
|
||||
|
||||
export default async function Page({ params }: { params: Promise<{ id: string }> }) {
|
||||
const { id } = await params;
|
||||
redirect(`/portal/laser-settings?t=co2-galvo&id=${encodeURIComponent(id)}`);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
// app/settings/co2-gantry/[id]/page.tsx
|
||||
import { redirect } from "next/navigation";
|
||||
export default function Page({ params }: { params: { id: string } }) {
|
||||
redirect(`/portal/laser-settings?t=co2-gantry&id=${encodeURIComponent(params.id)}`);
|
||||
|
||||
export default async function Page({ params }: { params: Promise<{ id: string }> }) {
|
||||
const { id } = await params;
|
||||
redirect(`/portal/laser-settings?t=co2-gantry&id=${encodeURIComponent(id)}`);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
// app/settings/fiber/[id]/page.tsx
|
||||
import { redirect } from "next/navigation";
|
||||
export default function Page({ params }: { params: { id: string } }) {
|
||||
redirect(`/portal/laser-settings?t=fiber&id=${encodeURIComponent(params.id)}`);
|
||||
|
||||
export default async function Page({ params }: { params: Promise<{ id: string }> }) {
|
||||
const { id } = await params;
|
||||
redirect(`/portal/laser-settings?t=fiber&id=${encodeURIComponent(id)}`);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
// app/settings/uv/[id]/page.tsx
|
||||
import { redirect } from "next/navigation";
|
||||
export default function Page({ params }: { params: { id: string } }) {
|
||||
redirect(`/portal/laser-settings?t=uv&id=${encodeURIComponent(params.id)}`);
|
||||
|
||||
export default async function Page({ params }: { params: Promise<{ id: string }> }) {
|
||||
const { id } = await params;
|
||||
redirect(`/portal/laser-settings?t=uv&id=${encodeURIComponent(id)}`);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue