Compare commits

...

2 Commits

Author SHA1 Message Date
Claude
017bb1b8f5 Fix E2E seeding 404 by using correct basePath for workflowui API route
The workflowui Next.js app uses basePath: '/workflowui', so its API
routes are served at /workflowui/api/setup, not /api/setup. The global
setup was calling the wrong path, resulting in a 404 and aborting the
entire E2E test suite.

https://claude.ai/code/session_019xbfXDfsSMKjWoH6BkaPx6
2026-03-12 11:29:49 +00:00
6a2cda46ec Merge pull request #1508 from johndoe6345789/claude/fix-docker-postinstall-script-RTNCL
Fix Docker build failure: copy postinstall patch script into build context
2026-03-12 07:35:57 +00:00

View File

@@ -35,9 +35,10 @@ async function globalSetup() {
await new Promise(resolve => setTimeout(resolve, 2000))
// ── 3. Seed database ────────────────────────────────────────────────────
// workflowui uses basePath: '/workflowui', so the setup route is at /workflowui/api/setup
const setupUrl = process.env.PLAYWRIGHT_BASE_URL
? new URL('/api/setup', process.env.PLAYWRIGHT_BASE_URL.replace(/\/workflowui\/?$/, '')).href
: 'http://localhost:3000/api/setup'
? new URL('/workflowui/api/setup', process.env.PLAYWRIGHT_BASE_URL.replace(/\/workflowui\/?$/, '')).href
: 'http://localhost:3000/workflowui/api/setup'
try {
const response = await fetch(setupUrl, { method: 'POST' })