create-smoodly-app 0.0.28 → 0.0.30
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/dist/index.js +0 -0
- package/package.json +1 -1
- package/templates/blank/AGENTS.md +6 -2
- package/templates/blank/package.json +1 -1
- package/templates/blank/smoodly/server.ts +4 -1
- package/templates/blank-intl/AGENTS.md +6 -2
- package/templates/blank-intl/package.json +1 -1
- package/templates/blank-intl/smoodly/server.ts +4 -1
- package/templates/lorem/AGENTS.md +6 -2
- package/templates/lorem/package.json +1 -1
- package/templates/lorem/smoodly/server.ts +4 -1
- package/templates/lorem-intl/AGENTS.md +6 -2
- package/templates/lorem-intl/package.json +1 -1
- package/templates/lorem-intl/smoodly/server.ts +4 -1
package/dist/index.js
CHANGED
|
File without changes
|
package/package.json
CHANGED
|
@@ -22,8 +22,12 @@ where things are.
|
|
|
22
22
|
written through the page and entry stores, never raw SQL. It is
|
|
23
23
|
idempotent; run it with `npm run seed`.
|
|
24
24
|
- **Never import the admin into the site.** Nothing under `app/(site)`,
|
|
25
|
-
`app/[locale]` or `components
|
|
26
|
-
`smoodly/
|
|
25
|
+
`app/[locale]` or `components/`, and nothing they import
|
|
26
|
+
(`smoodly/server.ts` included), may import `@/smoodly/admin` or
|
|
27
|
+
`smoodly/admin/next`: Next ships every client module a route imports,
|
|
28
|
+
rendered or not, and the admin's chunk must not reach visitors. The
|
|
29
|
+
package's `smoodly/admin` entry has no client code; server-side
|
|
30
|
+
admin glue such as `supabaseAdminAuth` comes from there.
|
|
27
31
|
- **Two root layouts.** The site's layout lives in its route group or
|
|
28
32
|
locale segment and is never the admin's parent; `app/(smoodly)/admin`
|
|
29
33
|
is a second root layout. Do not add an `app/layout.tsx`.
|
|
@@ -11,7 +11,10 @@
|
|
|
11
11
|
import {
|
|
12
12
|
createSmoodlyClient, createSmoodlySite, publicContentConfig, smoodlyEnv, SupabaseAssetStore, SupabaseEntryStore, SupabaseMemberStore, SupabasePageStore, SupabasePathIndex, type ContentConfig, type SmoodlySite,
|
|
13
13
|
} from "smoodly";
|
|
14
|
-
|
|
14
|
+
// The admin gate from `smoodly/admin`, which holds no client code: the site
|
|
15
|
+
// routes import this file, and `smoodly/admin/next` would put the admin
|
|
16
|
+
// shell in every live page's JavaScript.
|
|
17
|
+
import { supabaseAdminAuth, type AdminAuth, type AuthConfig } from "smoodly/admin";
|
|
15
18
|
import { createPageRenderer, createSmoodlyQueries, type PageRegistration } from "smoodly/next";
|
|
16
19
|
import type { SupabaseClient } from "@supabase/supabase-js";
|
|
17
20
|
import { collections, config, elements, sections, globals } from "./config";
|
|
@@ -22,8 +22,12 @@ where things are.
|
|
|
22
22
|
written through the page and entry stores, never raw SQL. It is
|
|
23
23
|
idempotent; run it with `npm run seed`.
|
|
24
24
|
- **Never import the admin into the site.** Nothing under `app/(site)`,
|
|
25
|
-
`app/[locale]` or `components
|
|
26
|
-
`smoodly/
|
|
25
|
+
`app/[locale]` or `components/`, and nothing they import
|
|
26
|
+
(`smoodly/server.ts` included), may import `@/smoodly/admin` or
|
|
27
|
+
`smoodly/admin/next`: Next ships every client module a route imports,
|
|
28
|
+
rendered or not, and the admin's chunk must not reach visitors. The
|
|
29
|
+
package's `smoodly/admin` entry has no client code; server-side
|
|
30
|
+
admin glue such as `supabaseAdminAuth` comes from there.
|
|
27
31
|
- **Two root layouts.** The site's layout lives in its route group or
|
|
28
32
|
locale segment and is never the admin's parent; `app/(smoodly)/admin`
|
|
29
33
|
is a second root layout. Do not add an `app/layout.tsx`.
|
|
@@ -11,7 +11,10 @@
|
|
|
11
11
|
import {
|
|
12
12
|
createSmoodlyClient, createSmoodlySite, publicContentConfig, smoodlyEnv, SupabaseAssetStore, SupabaseEntryStore, SupabaseMemberStore, SupabasePageStore, SupabasePathIndex, type ContentConfig, type SmoodlySite,
|
|
13
13
|
} from "smoodly";
|
|
14
|
-
|
|
14
|
+
// The admin gate from `smoodly/admin`, which holds no client code: the site
|
|
15
|
+
// routes import this file, and `smoodly/admin/next` would put the admin
|
|
16
|
+
// shell in every live page's JavaScript.
|
|
17
|
+
import { supabaseAdminAuth, type AdminAuth, type AuthConfig } from "smoodly/admin";
|
|
15
18
|
import { createPageRenderer, createSmoodlyQueries, type PageRegistration } from "smoodly/next";
|
|
16
19
|
import type { SupabaseClient } from "@supabase/supabase-js";
|
|
17
20
|
import { getPathname } from "@/i18n/navigation";
|
|
@@ -22,8 +22,12 @@ where things are.
|
|
|
22
22
|
written through the page and entry stores, never raw SQL. It is
|
|
23
23
|
idempotent; run it with `npm run seed`.
|
|
24
24
|
- **Never import the admin into the site.** Nothing under `app/(site)`,
|
|
25
|
-
`app/[locale]` or `components
|
|
26
|
-
`smoodly/
|
|
25
|
+
`app/[locale]` or `components/`, and nothing they import
|
|
26
|
+
(`smoodly/server.ts` included), may import `@/smoodly/admin` or
|
|
27
|
+
`smoodly/admin/next`: Next ships every client module a route imports,
|
|
28
|
+
rendered or not, and the admin's chunk must not reach visitors. The
|
|
29
|
+
package's `smoodly/admin` entry has no client code; server-side
|
|
30
|
+
admin glue such as `supabaseAdminAuth` comes from there.
|
|
27
31
|
- **Two root layouts.** The site's layout lives in its route group or
|
|
28
32
|
locale segment and is never the admin's parent; `app/(smoodly)/admin`
|
|
29
33
|
is a second root layout. Do not add an `app/layout.tsx`.
|
|
@@ -11,7 +11,10 @@
|
|
|
11
11
|
import {
|
|
12
12
|
createSmoodlyClient, createSmoodlySite, publicContentConfig, smoodlyEnv, SupabaseAssetStore, SupabaseEntryStore, SupabaseMemberStore, SupabasePageStore, SupabasePathIndex, type ContentConfig, type SmoodlySite,
|
|
13
13
|
} from "smoodly";
|
|
14
|
-
|
|
14
|
+
// The admin gate from `smoodly/admin`, which holds no client code: the site
|
|
15
|
+
// routes import this file, and `smoodly/admin/next` would put the admin
|
|
16
|
+
// shell in every live page's JavaScript.
|
|
17
|
+
import { supabaseAdminAuth, type AdminAuth, type AuthConfig } from "smoodly/admin";
|
|
15
18
|
import { createPageRenderer, createSmoodlyQueries, type PageRegistration } from "smoodly/next";
|
|
16
19
|
import type { SupabaseClient } from "@supabase/supabase-js";
|
|
17
20
|
import { collections, config, elements, sections, globals } from "./config";
|
|
@@ -22,8 +22,12 @@ where things are.
|
|
|
22
22
|
written through the page and entry stores, never raw SQL. It is
|
|
23
23
|
idempotent; run it with `npm run seed`.
|
|
24
24
|
- **Never import the admin into the site.** Nothing under `app/(site)`,
|
|
25
|
-
`app/[locale]` or `components
|
|
26
|
-
`smoodly/
|
|
25
|
+
`app/[locale]` or `components/`, and nothing they import
|
|
26
|
+
(`smoodly/server.ts` included), may import `@/smoodly/admin` or
|
|
27
|
+
`smoodly/admin/next`: Next ships every client module a route imports,
|
|
28
|
+
rendered or not, and the admin's chunk must not reach visitors. The
|
|
29
|
+
package's `smoodly/admin` entry has no client code; server-side
|
|
30
|
+
admin glue such as `supabaseAdminAuth` comes from there.
|
|
27
31
|
- **Two root layouts.** The site's layout lives in its route group or
|
|
28
32
|
locale segment and is never the admin's parent; `app/(smoodly)/admin`
|
|
29
33
|
is a second root layout. Do not add an `app/layout.tsx`.
|
|
@@ -11,7 +11,10 @@
|
|
|
11
11
|
import {
|
|
12
12
|
createSmoodlyClient, createSmoodlySite, publicContentConfig, smoodlyEnv, SupabaseAssetStore, SupabaseEntryStore, SupabaseMemberStore, SupabasePageStore, SupabasePathIndex, type ContentConfig, type SmoodlySite,
|
|
13
13
|
} from "smoodly";
|
|
14
|
-
|
|
14
|
+
// The admin gate from `smoodly/admin`, which holds no client code: the site
|
|
15
|
+
// routes import this file, and `smoodly/admin/next` would put the admin
|
|
16
|
+
// shell in every live page's JavaScript.
|
|
17
|
+
import { supabaseAdminAuth, type AdminAuth, type AuthConfig } from "smoodly/admin";
|
|
15
18
|
import { createPageRenderer, createSmoodlyQueries, type PageRegistration } from "smoodly/next";
|
|
16
19
|
import type { SupabaseClient } from "@supabase/supabase-js";
|
|
17
20
|
import { getPathname } from "@/i18n/navigation";
|