build fixes

This commit is contained in:
makearmy 2025-09-27 17:50:12 -04:00
parent 656ad5fe7e
commit 7d6f7c682c
8 changed files with 35 additions and 14 deletions

View file

@ -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)}`);
}

View file

@ -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)}`);
}

View file

@ -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)}`);
}

View 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)}`);
}

View file

@ -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)}`);
}

View file

@ -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)}`);
}

View file

@ -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)}`);
}

View file

@ -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)}`);
}