fix: complete dashboard hydration

This commit is contained in:
Marc-André Bombeck committed 2026-08-05 23:03:17 +02:00
1 parent 03877a0971
commit d07b9249c8
16 files changed
+468 -60

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
/**
* The second E2E server: the app as self-hosters actually run it.
*
* `playwright.config.ts` starts the main server with
* `DASHBOARD_SSR_PREFETCH=false`, because the dashboard specs mock `/api/*`
* through `page.route` and a route mock only sees CLIENT fetches — an
* SSR-embedded snapshot would bypass every fixture. That trade is sound for
* those specs and wrong for the product: the flag ships ON, so the whole suite
* was proving a configuration nobody runs.
*
* This module names the second server so the config and the one spec that
* uses it cannot drift on a port number. With `E2E_SKIP_WEB_SERVER=1` neither
* server is started for you and both have to be running — the same contract
* that already applies to the main one.
*/
export const SSR_PREFETCH_PORT = 3100;
export const SSR_PREFETCH_BASE_URL =
process.env.E2E_SSR_PREFETCH_BASE_URL ??
`http://localhost:${SSR_PREFETCH_PORT}`;