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/lasers/[id]/page.tsx
|
||||
import { redirect } from "next/navigation";
|
||||
export default function Page({ params }: { params: { id: string } }) {
|
||||
redirect(`/portal/laser-sources?id=${encodeURIComponent(params.id)}`);
|
||||
|
||||
export default async function Page({ params }: { params: Promise<{ id: string }> }) {
|
||||
const { id } = await params;
|
||||
redirect(`/portal/laser-sources?id=${encodeURIComponent(id)}`);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
// app/materials/materials-coatings/[id]/page.tsx
|
||||
import { redirect } from "next/navigation";
|
||||
export default function Page({ params }: { params: { id: string } }) {
|
||||
redirect(`/portal/materials?t=materials-coatings&id=${encodeURIComponent(params.id)}`);
|
||||
|
||||
export default async function Page({ params }: { params: Promise<{ id: string }> }) {
|
||||
const { id } = await params;
|
||||
redirect(`/portal/materials?t=materials-coatings&id=${encodeURIComponent(id)}`);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
// app/materials/materials/[id]/page.tsx
|
||||
import { redirect } from "next/navigation";
|
||||
export default function Page({ params }: { params: { id: string } }) {
|
||||
redirect(`/portal/materials?t=materials&id=${encodeURIComponent(params.id)}`);
|
||||
|
||||
export default async function Page({ params }: { params: Promise<{ id: string }> }) {
|
||||
const { id } = await params;
|
||||
redirect(`/portal/materials?t=materials&id=${encodeURIComponent(id)}`);
|
||||
}
|
||||
|
|
|
|||
7
app/projects/[id]/page.tsx
Normal file
7
app/projects/[id]/page.tsx
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
// app/projects/[id]/page.tsx
|
||||
import { redirect } from "next/navigation";
|
||||
|
||||
export default async function Page({ params }: { params: Promise<{ id: string }> }) {
|
||||
const { id } = await params;
|
||||
redirect(`/portal/projects?id=${encodeURIComponent(id)}`);
|
||||
}
|
||||
|
|
@ -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