Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ jobs:
if printf '%s\n' "$changed_files" | grep -E '^(vercel\.examples\.json|scripts/assemble-examples\.ts)$' >/dev/null; then
examples_changed=true
fi
if printf '%s\n' "$changed_files" | grep -E '^libs/(angular|chat|render)/' >/dev/null; then
if printf '%s\n' "$changed_files" | grep -E '^libs/(chat|langgraph|ag-ui|render|a2ui|partial-json|example-layouts)/' >/dev/null; then
examples_changed=true
fi
echo "changed=$examples_changed" >> "$GITHUB_OUTPUT"
Expand Down
12 changes: 8 additions & 4 deletions apps/website/playwright.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
import { defineConfig } from '@playwright/test';

const baseURL = process.env['BASE_URL'] ?? 'http://localhost:3000';
const localHost = '127.0.0.1';
const localPort = process.env['WEBSITE_E2E_PORT'] ?? '4308';
const localURL = `http://${localHost}:${localPort}`;
const baseURL = process.env['BASE_URL'] ?? localURL;
const shouldStartLocalServer = !process.env['BASE_URL'];
const reuseExistingServer = process.env['PLAYWRIGHT_REUSE_EXISTING_SERVER'] === 'true';

export default defineConfig({
testDir: './e2e',
Expand All @@ -11,9 +15,9 @@ export default defineConfig({
},
webServer: shouldStartLocalServer
? {
command: 'npx next dev . --port 3000',
url: 'http://localhost:3000',
reuseExistingServer: !process.env['CI'],
command: `npx next dev . --hostname ${localHost} --port ${localPort}`,
url: localURL,
reuseExistingServer,
}
: undefined,
});
Loading