chore: update next.js version to 15.4.7 and comment out TRPC panel API handler
This commit is contained in:
parent
18bde5eb9e
commit
2c0ff3bbbb
3 changed files with 2298 additions and 2614 deletions
4879
apps/infoalloggi/package-lock.json
generated
4879
apps/infoalloggi/package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
|
@ -62,7 +62,7 @@
|
|||
"leaflet": "^1.9.4",
|
||||
"leaflet-defaulticon-compatibility": "^0.1.2",
|
||||
"lucide-react": "^0.536.0",
|
||||
"next": "^15.3.4",
|
||||
"next": "15.4.7",
|
||||
"next-themes": "^0.4.6",
|
||||
"nextjs-progressbar": "^0.0.16",
|
||||
"nodemailer": "^7.0.5",
|
||||
|
|
@ -140,7 +140,6 @@
|
|||
"prettier": "^3.6.2",
|
||||
"prettier-plugin-classnames": "^0.8.2",
|
||||
"prettier-plugin-tailwindcss": "^0.6.14",
|
||||
"trpc-ui": "https://gitpkg.vercel.app/jrhe/trpc-ui/packages/trpc-ui?feature/zod-v4-support&scripts.postinstall=%26%26%20npm%20install%20pnpm%20%26%26%20npm%20install%20--ignore-scripts%20%26%26%20npm%20run%20build",
|
||||
"typescript": "^5.9.2",
|
||||
"typescript-eslint": "^8.39.0"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1,17 +1,19 @@
|
|||
import type { NextApiRequest, NextApiResponse } from "next";
|
||||
import { appRouter } from "~/server/api/root";
|
||||
import { env } from "~/env.mjs";
|
||||
|
||||
export default async function handler(_: NextApiRequest, res: NextApiResponse) {
|
||||
if (env.NODE_ENV !== "development") {
|
||||
return res.status(404).send("Not Found");
|
||||
}
|
||||
|
||||
const { renderTrpcPanel } = await import(/* webpackIgnore: true */ "trpc-ui");
|
||||
res.status(200).send(
|
||||
renderTrpcPanel(appRouter, {
|
||||
url: "/api/trpc",
|
||||
transformer: "superjson",
|
||||
}),
|
||||
);
|
||||
return res.status(404).send("Not Found");
|
||||
}
|
||||
|
||||
// export default async function handler(_: NextApiRequest, res: NextApiResponse) {
|
||||
// if (env.NODE_ENV !== "development") {
|
||||
// return res.status(404).send("Not Found");
|
||||
// }
|
||||
|
||||
// const { renderTrpcPanel } = await import(/* webpackIgnore: true */ "trpc-ui");
|
||||
// res.status(200).send(
|
||||
// renderTrpcPanel(appRouter, {
|
||||
// url: "/api/trpc",
|
||||
// transformer: "superjson",
|
||||
// }),
|
||||
// );
|
||||
// }
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue