TX030
서버에서 렌더링된 라우트에 필요한 장기 실행 서버
발생 원인
페이지가 runtime = "server"를 내보내면 서버에서 렌더링하고, 각 열린 탭이 유지되는 동안 세션을 유지하며 해당 탭으로 프레임을 스트리밍해요. 정적 호스트, Vercel Functions, Cloudflare Workers는 이런 세션을 유지할 수 없어서 text build --adapter static|vercel|cloudflare는 렌더링할 수 없는 라우트를 배포하는 대신 앱을 거부해요.
해결 방법
계속 실행되는 서버로 배포하세요:
text build --adapter bunbun dist/server.js# ortext build && text start또는 내보내기를 제거해 브라우저에서 라우트를 렌더링하세요:
app/ops/page.tsxtsx
// Beforeexport const runtime = "server";// After: the default client runtime