@thinhnguyencth1204/nextcli 0.6.0 → 0.6.1
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/cli.js
CHANGED
|
@@ -582,7 +582,7 @@ import { readdir as readdir3, readFile as readFile4, writeFile as writeFile4 } f
|
|
|
582
582
|
import path4 from "path";
|
|
583
583
|
import { readdir as readdir2, readFile as readFile3, writeFile as writeFile3 } from "fs/promises";
|
|
584
584
|
var defaultManifest = {
|
|
585
|
-
cli: "0.6.
|
|
585
|
+
cli: "0.6.1",
|
|
586
586
|
defaultLocale: "vi",
|
|
587
587
|
locales: ["vi"],
|
|
588
588
|
namespaces: ["common", "auth", "example"],
|
|
@@ -1989,7 +1989,7 @@ function registerCreateCommand(program2) {
|
|
|
1989
1989
|
await replaceTokensInDirectory(targetPath, {
|
|
1990
1990
|
__PROJECT_NAME__: projectSlug,
|
|
1991
1991
|
__BETTER_AUTH_SECRET__: betterAuthSecret,
|
|
1992
|
-
__NEXTCLI_VERSION__: "0.6.
|
|
1992
|
+
__NEXTCLI_VERSION__: "0.6.1"
|
|
1993
1993
|
});
|
|
1994
1994
|
await mergeModuleSetupSections(
|
|
1995
1995
|
targetPath,
|
|
@@ -2000,7 +2000,7 @@ function registerCreateCommand(program2) {
|
|
|
2000
2000
|
if (manifest) {
|
|
2001
2001
|
await writeManifest(targetPath, {
|
|
2002
2002
|
...manifest,
|
|
2003
|
-
cli: "0.6.
|
|
2003
|
+
cli: "0.6.1",
|
|
2004
2004
|
modules: selectedModules
|
|
2005
2005
|
});
|
|
2006
2006
|
}
|
|
@@ -2245,7 +2245,7 @@ var NexTCLICommand = class _NexTCLICommand extends Command {
|
|
|
2245
2245
|
|
|
2246
2246
|
// src/cli.ts
|
|
2247
2247
|
var program = new NexTCLICommand();
|
|
2248
|
-
program.name("nextcli").description("Scaffold outsource-ready Next.js projects").version("0.6.
|
|
2248
|
+
program.name("nextcli").description("Scaffold outsource-ready Next.js projects").version("0.6.1");
|
|
2249
2249
|
registerCreateCommand(program);
|
|
2250
2250
|
registerAddCommand(program);
|
|
2251
2251
|
registerMigrateCommand(program);
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@ Quick reference for env vars and branding after `nextcli create`.
|
|
|
4
4
|
|
|
5
5
|
## First run (required)
|
|
6
6
|
|
|
7
|
-
1. Create a Supabase project and set `DATABASE_URL` in `.env`.
|
|
7
|
+
1. Create a Supabase project and set `DATABASE_URL` and `DIRECT_URL` in `.env`.
|
|
8
8
|
2. `bun run db:migrate` — applies `prisma/migrations` (includes `Role`, `User.username`, `requirePasswordChange`).
|
|
9
9
|
3. `bun run dev` — bootstrap seeds `admin` / `admin` on first start.
|
|
10
10
|
|
|
@@ -23,16 +23,16 @@ Quick reference for env vars and branding after `nextcli create`.
|
|
|
23
23
|
|
|
24
24
|
Set in `.env` / `.env.development` (secrets are generated at create time).
|
|
25
25
|
|
|
26
|
-
| Variable | Purpose
|
|
27
|
-
| ------------------------------------- |
|
|
28
|
-
| `DATABASE_URL` |
|
|
29
|
-
| `DIRECT_URL` |
|
|
30
|
-
| `NEXT_PUBLIC_SUPABASE_URL` | Supabase client URL
|
|
31
|
-
| `NEXT_PUBLIC_SUPABASE_ANON_KEY` | Browser-safe anon API key (public key used by client SDK)
|
|
32
|
-
| `NEXT_PUBLIC_SUPABASE_STORAGE_BUCKET` | Storage bucket name used by app uploads/reads (`public` is the default bucket name)
|
|
33
|
-
| `BETTER_AUTH_SECRET` | Auth signing secret
|
|
34
|
-
| `BETTER_AUTH_URL` | Server auth base URL
|
|
35
|
-
| `NEXT_PUBLIC_APP_URL` | Client-visible app URL
|
|
26
|
+
| Variable | Purpose | Where to get |
|
|
27
|
+
| ------------------------------------- | ------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- |
|
|
28
|
+
| `DATABASE_URL` | Postgres URL for app runtime and Prisma CLI (`prisma.config.ts` → `datasource.url`) | Supabase Dashboard → Connect → ORMs → Prisma → pooled URL (`:6543`, `?pgbouncer=true`) |
|
|
29
|
+
| `DIRECT_URL` | Direct/session Postgres URL from Supabase Connect (keep in env for reference/tooling) | Supabase Dashboard → Connect → ORMs → Prisma → direct/session URL (`:5432`) |
|
|
30
|
+
| `NEXT_PUBLIC_SUPABASE_URL` | Supabase client URL | Supabase Dashboard → Project Settings → API → Project URL |
|
|
31
|
+
| `NEXT_PUBLIC_SUPABASE_ANON_KEY` | Browser-safe anon API key (public key used by client SDK) | Same page → Project API keys → `anon` `public` |
|
|
32
|
+
| `NEXT_PUBLIC_SUPABASE_STORAGE_BUCKET` | Storage bucket name used by app uploads/reads (`public` is the default bucket name) | Storage → create/select bucket → use that bucket name |
|
|
33
|
+
| `BETTER_AUTH_SECRET` | Auth signing secret | Auto-generated on create; rotate in production |
|
|
34
|
+
| `BETTER_AUTH_URL` | Server auth base URL | Your app URL (e.g. `http://localhost:3000`) |
|
|
35
|
+
| `NEXT_PUBLIC_APP_URL` | Client-visible app URL | Same as public site URL |
|
|
36
36
|
|
|
37
37
|
### Default admin account
|
|
38
38
|
|