debug route
This commit is contained in:
parent
a77db7e781
commit
886059f5e2
2 changed files with 18 additions and 2 deletions
17
app/api/debug/meta/route.ts
Normal file
17
app/api/debug/meta/route.ts
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
// app/api/debug/meta/route.ts
|
||||
import { NextResponse } from "next/server";
|
||||
import { promises as fs } from "fs";
|
||||
export async function GET() {
|
||||
let buildId = null;
|
||||
try {
|
||||
buildId = (await fs.readFile(process.cwd() + "/.next/BUILD_ID", "utf8")).trim();
|
||||
} catch {}
|
||||
return NextResponse.json({
|
||||
env: process.env.NEXT_PUBLIC_ENV || null,
|
||||
nodeEnv: process.env.NODE_ENV || null,
|
||||
buildId,
|
||||
image: process.env.IMAGE_TAG || null,
|
||||
commit: process.env.COMMIT_SHA || null,
|
||||
time: new Date().toISOString(),
|
||||
});
|
||||
}
|
||||
|
|
@ -38,10 +38,9 @@ export default function CO2GalvoSettingsPage() {
|
|||
"submission_id",
|
||||
"setting_title",
|
||||
"uploader",
|
||||
// owner (M2O) – ensure username is requested
|
||||
"owner"
|
||||
"owner.id",
|
||||
"owner.username",
|
||||
// assets / denorms
|
||||
"photo.id",
|
||||
"photo.title",
|
||||
"mat.name",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue