create-bw-app 0.9.2 → 0.9.4
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 +1 -1
- package/src/constants.mjs +7 -7
- package/src/generator.mjs +2 -2
- package/template/base/config/env.ts +4 -4
- package/template/modules/admin/app/playground/admin/page.tsx +2 -2
- package/template/modules/crm/app/playground/crm/page.tsx +1 -1
- package/template/modules/projects/app/playground/projects/page.tsx +2 -2
package/package.json
CHANGED
package/src/constants.mjs
CHANGED
|
@@ -66,13 +66,13 @@ export const MODULE_STARTER_FILES = {
|
|
|
66
66
|
};
|
|
67
67
|
|
|
68
68
|
export const APP_DEPENDENCY_DEFAULTS = {
|
|
69
|
-
"@brightweblabs/app-shell": "^0.
|
|
70
|
-
"@brightweblabs/core-auth": "^0.
|
|
71
|
-
"@brightweblabs/infra": "^0.
|
|
72
|
-
"@brightweblabs/module-admin": "^0.
|
|
73
|
-
"@brightweblabs/module-crm": "^0.
|
|
74
|
-
"@brightweblabs/module-projects": "^0.
|
|
75
|
-
"@brightweblabs/ui": "^0.
|
|
69
|
+
"@brightweblabs/app-shell": "^0.3.0",
|
|
70
|
+
"@brightweblabs/core-auth": "^0.3.0",
|
|
71
|
+
"@brightweblabs/infra": "^0.2.0",
|
|
72
|
+
"@brightweblabs/module-admin": "^0.3.0",
|
|
73
|
+
"@brightweblabs/module-crm": "^0.3.0",
|
|
74
|
+
"@brightweblabs/module-projects": "^0.2.0",
|
|
75
|
+
"@brightweblabs/ui": "^0.3.0",
|
|
76
76
|
"lucide-react": "^0.562.0",
|
|
77
77
|
"next": "16.1.6",
|
|
78
78
|
"react": "19.2.3",
|
package/src/generator.mjs
CHANGED
|
@@ -360,8 +360,8 @@ function createEnvFileContent() {
|
|
|
360
360
|
return [
|
|
361
361
|
"NEXT_PUBLIC_APP_URL=http://localhost:3000",
|
|
362
362
|
"NEXT_PUBLIC_SUPABASE_URL=",
|
|
363
|
-
"
|
|
364
|
-
"
|
|
363
|
+
"NEXT_PUBLIC_SUPABASE_PUBLISHABLE_DEFAULT_KEY=",
|
|
364
|
+
"SUPABASE_SECRET_DEFAULT_KEY=",
|
|
365
365
|
"RESEND_API_KEY=",
|
|
366
366
|
"",
|
|
367
367
|
].join("\n");
|
|
@@ -25,15 +25,15 @@ export const starterEnvRequirements: StarterEnvRequirement[] = [
|
|
|
25
25
|
requiredFor: ["crm", "projects", "admin"],
|
|
26
26
|
},
|
|
27
27
|
{
|
|
28
|
-
key: "
|
|
28
|
+
key: "NEXT_PUBLIC_SUPABASE_PUBLISHABLE_DEFAULT_KEY",
|
|
29
29
|
scope: "public",
|
|
30
|
-
description: "Supabase
|
|
30
|
+
description: "Supabase publishable key for browser auth and RPC calls.",
|
|
31
31
|
requiredFor: ["crm", "projects", "admin"],
|
|
32
32
|
},
|
|
33
33
|
{
|
|
34
|
-
key: "
|
|
34
|
+
key: "SUPABASE_SECRET_DEFAULT_KEY",
|
|
35
35
|
scope: "server",
|
|
36
|
-
description: "
|
|
36
|
+
description: "Supabase secret key for privileged admin, CRM, and project actions.",
|
|
37
37
|
requiredFor: ["crm", "projects", "admin"],
|
|
38
38
|
},
|
|
39
39
|
{
|
|
@@ -90,8 +90,8 @@ export default async function AdminPlaygroundPage() {
|
|
|
90
90
|
<p>{formatError(error)}</p>
|
|
91
91
|
</div>
|
|
92
92
|
<ul className="list">
|
|
93
|
-
<li>Set the Supabase public URL and
|
|
94
|
-
<li>Set the Supabase
|
|
93
|
+
<li>Set the Supabase public URL and publishable key.</li>
|
|
94
|
+
<li>Set the Supabase secret key.</li>
|
|
95
95
|
<li>Ensure the client database includes the admin role assignment tables and RPCs.</li>
|
|
96
96
|
</ul>
|
|
97
97
|
</div>
|
|
@@ -92,7 +92,7 @@ export default async function CrmPlaygroundPage() {
|
|
|
92
92
|
<ul className="list">
|
|
93
93
|
<li>Set `NEXT_PUBLIC_APP_URL`.</li>
|
|
94
94
|
<li>Set `NEXT_PUBLIC_SUPABASE_URL`.</li>
|
|
95
|
-
<li>Set `
|
|
95
|
+
<li>Set `NEXT_PUBLIC_SUPABASE_PUBLISHABLE_DEFAULT_KEY`.</li>
|
|
96
96
|
<li>If you need CRM writes or email flows, also set the server-only keys in the platform repo.</li>
|
|
97
97
|
</ul>
|
|
98
98
|
</div>
|
|
@@ -81,8 +81,8 @@ export default async function ProjectsPlaygroundPage() {
|
|
|
81
81
|
<p>{formatError(error)}</p>
|
|
82
82
|
</div>
|
|
83
83
|
<ul className="list">
|
|
84
|
-
<li>Set the Supabase public URL and
|
|
85
|
-
<li>Set the Supabase
|
|
84
|
+
<li>Set the Supabase public URL and publishable key.</li>
|
|
85
|
+
<li>Set the Supabase secret key for server access.</li>
|
|
86
86
|
<li>Ensure the projects schema exists in the target client database.</li>
|
|
87
87
|
</ul>
|
|
88
88
|
</div>
|