This commit is contained in:
hailin 2025-06-16 14:22:02 +08:00
parent 0aa86587c3
commit 39f4448674
2 changed files with 3 additions and 1 deletions

View File

@ -61,7 +61,7 @@ RUN chmod +x /plugai/wrapper.sh
RUN rm -rf /root/.npm /root/.pnpm-store /tmp/* RUN rm -rf /root/.npm /root/.pnpm-store /tmp/*
HEALTHCHECK --interval=30s --timeout=3s --start-period=25s --retries=3 CMD curl -fs http://localhost:3008/api/health || exit 1 HEALTHCHECK --interval=30s --timeout=3s --start-period=25s --retries=3 CMD curl -fs http://localhost:3008/api/health/ || exit 1
EXPOSE 3008 EXPOSE 3008

View File

@ -1,6 +1,8 @@
import { NextResponse } from 'next/server' import { NextResponse } from 'next/server'
import { getRuntimeEnv } from '@/lib/ipconfig' // 路径按你项目实际调整 import { getRuntimeEnv } from '@/lib/ipconfig' // 路径按你项目实际调整
export const runtime = 'nodejs'
export async function GET() { export async function GET() {
let ip: string | null = null let ip: string | null = null
let res: string | undefined = undefined let res: string | undefined = undefined