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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "create-bw-app",
3
3
  "private": false,
4
- "version": "0.9.2",
4
+ "version": "0.9.4",
5
5
  "type": "module",
6
6
  "bin": "bin/create-bw-app.mjs",
7
7
  "files": [
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.1.1",
70
- "@brightweblabs/core-auth": "^0.1.1",
71
- "@brightweblabs/infra": "^0.1.0",
72
- "@brightweblabs/module-admin": "^0.1.1",
73
- "@brightweblabs/module-crm": "^0.1.1",
74
- "@brightweblabs/module-projects": "^0.1.1",
75
- "@brightweblabs/ui": "^0.1.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
- "NEXT_PUBLIC_SUPABASE_ANON_KEY=",
364
- "SUPABASE_SERVICE_ROLE_KEY=",
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: "NEXT_PUBLIC_SUPABASE_ANON_KEY",
28
+ key: "NEXT_PUBLIC_SUPABASE_PUBLISHABLE_DEFAULT_KEY",
29
29
  scope: "public",
30
- description: "Supabase anonymous key for browser auth and RPC calls.",
30
+ description: "Supabase publishable key for browser auth and RPC calls.",
31
31
  requiredFor: ["crm", "projects", "admin"],
32
32
  },
33
33
  {
34
- key: "SUPABASE_SERVICE_ROLE_KEY",
34
+ key: "SUPABASE_SECRET_DEFAULT_KEY",
35
35
  scope: "server",
36
- description: "Server role key for privileged admin, CRM, and project actions.",
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 anon key.</li>
94
- <li>Set the Supabase service role key.</li>
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 `NEXT_PUBLIC_SUPABASE_ANON_KEY`.</li>
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 anon key.</li>
85
- <li>Set the Supabase service role key for server access.</li>
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>