create-smoodly-app 0.0.19 → 0.0.21

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/README.md CHANGED
@@ -81,6 +81,22 @@ Posts and the Site item, a post with a Button element published and
81
81
  served at `/posts/<slug>` in both locales; blank single-language
82
82
  scaffolded in hosted mode against the repo stack and `next build` only.
83
83
 
84
+ ## Follow-ups (logged 2026-09-25, docs walk)
85
+
86
+ - **Single-language `/admin` had no root `<html>` (0.0.15–0.0.20).** The
87
+ variant's `app/(smoodly)/admin/layout.tsx` re-exported `AdminLayout`,
88
+ which renders a `<div>`; that only worked while the site had a
89
+ top-level `app/layout.tsx`, and 0.0.15 moved the site into `app/(site)`.
90
+ `next dev` showed two errors on the first visit to `/admin`: "Missing
91
+ <html> tags in the root layout" and, from the client-rendered tree, the
92
+ theme boot's "Encountered a script tag while rendering React component".
93
+ Found walking the Getting started guide on a fresh `lorem` install of
94
+ 0.0.20. Fixed 2026-09-25: the variant layout wraps `AdminLayout` in
95
+ `<html><body>` like the example's; both errors gone in the walk. CI's
96
+ live job only checks `/admin` for a 200, which this passed; an assertion
97
+ on the dev overlay (or on `<html>` in the served document) would have
98
+ caught it.
99
+
84
100
  ## Follow-ups (logged 2026-09-11)
85
101
 
86
102
  - **Blank single-language is typechecked, never built by CI.** The live
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-smoodly-app",
3
- "version": "0.0.19",
3
+ "version": "0.0.21",
4
4
  "description": "Create a Smoodly site: a fresh Next.js app with the admin mounted, a Supabase schema, an env file and a first editor.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -1 +1,15 @@
1
- export { AdminLayout as default } from "@/smoodly/admin";
1
+ import type { ReactNode } from "react";
2
+ import { AdminLayout } from "@/smoodly/admin";
3
+
4
+ // The admin's own root layout: the site's is app/(site)/layout.tsx, a
5
+ // sibling route group, so /admin has no parent layout and Next needs its
6
+ // own <html> here.
7
+ export default function AdminRootLayout({ children }: { children: ReactNode }) {
8
+ return (
9
+ <html lang="en">
10
+ <body>
11
+ <AdminLayout>{children}</AdminLayout>
12
+ </body>
13
+ </html>
14
+ );
15
+ }
@@ -14,7 +14,7 @@
14
14
  "next": "^16.3.4",
15
15
  "react": "^19",
16
16
  "react-dom": "^19",
17
- "smoodly": "0.0.19"
17
+ "smoodly": "0.0.21"
18
18
  },
19
19
  "devDependencies": {
20
20
  "@next/env": "^16.3.4",
@@ -14,7 +14,7 @@
14
14
  "next": "^16.3.4",
15
15
  "react": "^19",
16
16
  "react-dom": "^19",
17
- "smoodly": "0.0.19",
17
+ "smoodly": "0.0.21",
18
18
  "next-intl": "^4.14.2"
19
19
  },
20
20
  "devDependencies": {
@@ -1 +1,15 @@
1
- export { AdminLayout as default } from "@/smoodly/admin";
1
+ import type { ReactNode } from "react";
2
+ import { AdminLayout } from "@/smoodly/admin";
3
+
4
+ // The admin's own root layout: the site's is app/(site)/layout.tsx, a
5
+ // sibling route group, so /admin has no parent layout and Next needs its
6
+ // own <html> here.
7
+ export default function AdminRootLayout({ children }: { children: ReactNode }) {
8
+ return (
9
+ <html lang="en">
10
+ <body>
11
+ <AdminLayout>{children}</AdminLayout>
12
+ </body>
13
+ </html>
14
+ );
15
+ }
@@ -14,7 +14,7 @@
14
14
  "next": "^16.3.4",
15
15
  "react": "^19",
16
16
  "react-dom": "^19",
17
- "smoodly": "0.0.19"
17
+ "smoodly": "0.0.21"
18
18
  },
19
19
  "devDependencies": {
20
20
  "@next/env": "^16.3.4",
@@ -14,7 +14,7 @@
14
14
  "next": "^16.3.4",
15
15
  "react": "^19",
16
16
  "react-dom": "^19",
17
- "smoodly": "0.0.19",
17
+ "smoodly": "0.0.21",
18
18
  "next-intl": "^4.14.2"
19
19
  },
20
20
  "devDependencies": {