create-smoodly-app 0.0.29 → 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 CHANGED
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-smoodly-app",
3
- "version": "0.0.29",
3
+ "version": "0.0.30",
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": {
@@ -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/` may import `@/smoodly/admin` or
26
- `smoodly/admin/next`; the admin's chunk must not reach visitors.
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`.
@@ -14,7 +14,7 @@
14
14
  "next": "^16.3.4",
15
15
  "react": "^19",
16
16
  "react-dom": "^19",
17
- "smoodly": "0.0.29"
17
+ "smoodly": "0.0.30"
18
18
  },
19
19
  "devDependencies": {
20
20
  "@next/env": "^16.3.4",
@@ -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
- import { supabaseAdminAuth, type AdminAuth, type AuthConfig } from "smoodly/admin/next";
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/` may import `@/smoodly/admin` or
26
- `smoodly/admin/next`; the admin's chunk must not reach visitors.
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`.
@@ -14,7 +14,7 @@
14
14
  "next": "^16.3.4",
15
15
  "react": "^19",
16
16
  "react-dom": "^19",
17
- "smoodly": "0.0.29",
17
+ "smoodly": "0.0.30",
18
18
  "next-intl": "^4.14.2"
19
19
  },
20
20
  "devDependencies": {
@@ -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
- import { supabaseAdminAuth, type AdminAuth, type AuthConfig } from "smoodly/admin/next";
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/` may import `@/smoodly/admin` or
26
- `smoodly/admin/next`; the admin's chunk must not reach visitors.
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`.
@@ -14,7 +14,7 @@
14
14
  "next": "^16.3.4",
15
15
  "react": "^19",
16
16
  "react-dom": "^19",
17
- "smoodly": "0.0.29"
17
+ "smoodly": "0.0.30"
18
18
  },
19
19
  "devDependencies": {
20
20
  "@next/env": "^16.3.4",
@@ -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
- import { supabaseAdminAuth, type AdminAuth, type AuthConfig } from "smoodly/admin/next";
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/` may import `@/smoodly/admin` or
26
- `smoodly/admin/next`; the admin's chunk must not reach visitors.
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`.
@@ -14,7 +14,7 @@
14
14
  "next": "^16.3.4",
15
15
  "react": "^19",
16
16
  "react-dom": "^19",
17
- "smoodly": "0.0.29",
17
+ "smoodly": "0.0.30",
18
18
  "next-intl": "^4.14.2"
19
19
  },
20
20
  "devDependencies": {
@@ -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
- import { supabaseAdminAuth, type AdminAuth, type AuthConfig } from "smoodly/admin/next";
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";