Restore videoreg public guide site with static isolated deployment
Production container deploy / production (push) Failing after 2m34s
Production container deploy / production (push) Failing after 2m34s
This commit is contained in:
1 parent
2ce58fcbc0
commit
53e4f06486
35 files changed
+599
-355
No files matched your search
@@ -1,17 +1,5 @@
|
||||
import { NextResponse } from 'next/server';
|
||||
import { listVideos } from '@/entities/video/api/videoRepository';
|
||||
|
||||
export const dynamic = 'force-dynamic';
|
||||
|
||||
export async function GET() {
|
||||
await listVideos();
|
||||
|
||||
return NextResponse.json({
|
||||
status: 'ok',
|
||||
service: 'videoreg-web',
|
||||
metadata: {
|
||||
commitSha: process.env.COMMIT_SHA ?? 'local',
|
||||
releaseId: process.env.RELEASE_ID ?? 'local',
|
||||
},
|
||||
});
|
||||
}
|
||||
import snapshot from '@/content/catalog.json';
|
||||
import { parseDashcamCatalogExport } from '@/entities/dashcam-catalog/model/schema';
|
||||
export const dynamic='force-static';
|
||||
export async function GET(){const catalog=parseDashcamCatalogExport(snapshot);return NextResponse.json({status:'ok',service:'videoreg-web',products:catalog.products.length,metadata:{commitSha:process.env.COMMIT_SHA??'local'}})}
|
||||
Reference in new issue
Block a user