@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/dependencies-matrix.json +34 -22
- package/dist/bin/commands/agent-setup.js +553 -509
- package/dist/bin/commands/build.js +1144 -908
- package/dist/bin/commands/bump.js +1206 -931
- package/dist/bin/commands/cacheout.js +464 -390
- package/dist/bin/commands/coach.js +467 -393
- package/dist/bin/commands/create-app.js +1118 -846
- package/dist/bin/commands/create-project.js +1158 -886
- package/dist/bin/commands/db.js +16351 -33069
- package/dist/bin/commands/deploy.js +2171 -1870
- package/dist/bin/commands/dev.js +833 -647
- package/dist/bin/commands/doctor.js +555 -511
- package/dist/bin/commands/emu.js +1014 -770
- package/dist/bin/commands/format.js +509 -435
- package/dist/bin/commands/get-demo.js +964 -741
- package/dist/bin/commands/make-admin.js +10368 -27067
- package/dist/bin/commands/preview.js +834 -648
- package/dist/bin/commands/seed.js +16352 -33070
- package/dist/bin/commands/setup-cicd.js +1050 -801
- package/dist/bin/commands/setup.js +1216 -944
- package/dist/bin/commands/staging.js +2171 -1870
- package/dist/bin/commands/sync-secrets.js +916 -717
- package/dist/bin/commands/type-check.js +654 -583
- package/dist/bin/commands/wai.js +454 -380
- package/dist/bin/dndev.js +2 -6
- package/dist/index.js +2582 -2223
- package/package.json +1 -1
- package/templates/app-next/src/app/layout.tsx.example +8 -0
- package/templates/app-next/src/app/not-found.tsx.example +6 -0
package/package.json
CHANGED
|
@@ -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:
|