fix(nextjs): add force dynamic exports for new copilot routes (#784)

* feat: use 8-core self-hosted runner for faster Docker builds

* fix: lazy load large YAML prompt to prevent build memory exhaustion

- Convert YAML_WORKFLOW_PROMPT from static export to lazy function
- Prevents 281-line string literal from being loaded during static generation
- Fixes exit code 137 memory exhaustion during Docker builds

* fix(nextjs): add force dynamic for copilot routes to resolve OOM issue
This commit is contained in:
Waleed Latif
2025-07-24 18:46:33 -07:00
committed by GitHub
parent a84c55772d
commit 17e493b3b5
6 changed files with 15 additions and 6 deletions

View File

@@ -7,7 +7,7 @@ on:
jobs:
build-and-push:
runs-on: ubuntu-latest
runs-on: ubuntu-latest-8-cores
strategy:
fail-fast: false
matrix: