Fix Docker frontend hydration under CSP

Render the app shell dynamically so Next can attach per-request CSP nonces to its production scripts, preventing Docker from serving a static shell that cannot hydrate. Also gives the first-contact warmup test enough time in CI.
This commit is contained in:
BigBodyCobain
2026-05-02 19:47:32 -06:00
parent fa18c032e2
commit 8d3c7a51b7
2 changed files with 3 additions and 1 deletions
@@ -305,7 +305,7 @@ describe('MessagesView first-contact trust UX', () => {
await screen.findByText(/Mail delivered to Pinned Peer/i, {}, { timeout: 5000 });
expect(mocks.prepareWormholeInteractiveLane).toHaveBeenCalled();
expect(mocks.sendDmMessage).toHaveBeenCalled();
});
}, 10000);
it('does not flatten witness policy not met into a generic witnessed root label', async () => {
contactsState = {
+2
View File
@@ -8,6 +8,8 @@ export const metadata: Metadata = {
description: 'Advanced Geopolitical Risk Dashboard',
};
export const dynamic = 'force-dynamic';
export default function RootLayout({
children,
}: Readonly<{