@donotdev/cli 0.1.44 → 0.1.46

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@donotdev/cli",
3
- "version": "0.1.44",
3
+ "version": "0.1.46",
4
4
  "description": "Command-line interface for DoNotDev Framework",
5
5
  "type": "module",
6
6
  "private": false,
@@ -24,6 +24,14 @@ export async function generateMetadata(): Promise<Metadata> {
24
24
  return getMetadataForPath('/');
25
25
  }
26
26
 
27
+ // SSR (appConfig.ssr): render dynamically at request time. The provider tree is
28
+ // store-driven (theme/layout/i18n/overlay read live during render), so it is
29
+ // inherently dynamic under React 19. Setting it on the root layout covers every
30
+ // route in one place — generated pages, hand-written pages, and /_not-found.
31
+ // Content is still fully server-rendered and crawlable. Remove only if this app
32
+ // opts back out of SSR and returns to static export.
33
+ export const dynamic = 'force-dynamic';
34
+
27
35
  /**
28
36
  * Root layout for Next.js App Router
29
37
  *
@@ -11,6 +11,12 @@ import { Suspense } from 'react';
11
11
 
12
12
  import { NotFoundPage } from '@donotdev/ui';
13
13
 
14
+ // Under appConfig.ssr, /_not-found renders dynamically (real SSR at request time).
15
+ // It's a special route (not a generated page.tsx wrapper), so it carries its own
16
+ // flag; generated content routes get this automatically from the framework.
17
+ // Harmless when SSR is off. Remove if you switch this app back to static export.
18
+ export const dynamic = 'force-dynamic';
19
+
14
20
  /**
15
21
  * Next.js App Router automatically uses not-found.tsx for 404 errors
16
22
  * This file exports the framework's NotFoundPage component which provides: