nextjs-hackathon-stack 0.1.13 → 0.1.15

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
@@ -112,13 +112,6 @@ async function scaffold(projectName, skipInstall) {
112
112
  p3.log.error(stderr || "pnpm install failed");
113
113
  p3.log.info("You can install manually: cd " + projectName + " && pnpm install");
114
114
  }
115
- spinner2.start("Setting up husky pre-commit hooks");
116
- try {
117
- execSync("pnpm exec husky", { cwd: targetDir, stdio: "pipe" });
118
- spinner2.stop("Husky pre-commit hooks set up");
119
- } catch {
120
- spinner2.stop("Husky setup failed \u2014 run manually: pnpm exec husky");
121
- }
122
115
  spinner2.start("Initializing shadcn/ui");
123
116
  try {
124
117
  execSync("npx shadcn@latest init --yes --defaults --force --silent", {
@@ -151,6 +144,13 @@ async function scaffold(projectName, skipInstall) {
151
144
  } catch {
152
145
  spinner2.stop("Could not create initial commit");
153
146
  }
147
+ spinner2.start("Setting up husky pre-commit hooks");
148
+ try {
149
+ execSync("pnpm exec husky", { cwd: targetDir, stdio: "pipe" });
150
+ spinner2.stop("Husky pre-commit hooks set up");
151
+ } catch {
152
+ spinner2.stop("Husky setup failed \u2014 run manually: pnpm exec husky");
153
+ }
154
154
  success(pc2.bold(`Project "${projectName}" created!`));
155
155
  console.log(`
156
156
  ${pc2.dim("Next steps:")}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nextjs-hackathon-stack",
3
- "version": "0.1.13",
3
+ "version": "0.1.15",
4
4
  "description": "Scaffold a full-stack Next.js hackathon starter",
5
5
  "type": "module",
6
6
  "bin": {
@@ -35,7 +35,7 @@ const provider = createOpenAI({
35
35
  apiKey: process.env.AI_API_KEY,
36
36
  });
37
37
 
38
- export const aiModel = provider(process.env.AI_MODEL ?? "google/gemini-2.0-flash");
38
+ export const aiModel = provider(process.env.AI_MODEL ?? "minimax/minimax-m2.1");
39
39
  ```
40
40
 
41
41
  ## Streaming Pattern
@@ -14,7 +14,7 @@ Full-stack Next.js 15 hackathon starter.
14
14
  | State | TanStack Query v5 |
15
15
  | Forms | React Hook Form + Zod |
16
16
  | UI | shadcn/ui + Tailwind CSS v4 |
17
- | AI | Vercel AI SDK + Gemini 2.0 Flash |
17
+ | AI | Vercel AI SDK + MiniMax M2.1 |
18
18
  | Testing | Vitest + Playwright |
19
19
 
20
20
  ## Getting Started
@@ -29,7 +29,7 @@ NEXT_PUBLIC_SUPABASE_URL=https://your-project-id.supabase.co
29
29
  NEXT_PUBLIC_SUPABASE_ANON_KEY=your-anon-key
30
30
  DATABASE_URL=postgresql://postgres:[password]@db.your-project-id.supabase.co:5432/postgres
31
31
 
32
- # AI — Vercel AI Gateway (default: Google Gemini 2.0 Flash — free tier)
32
+ # AI — Vercel AI Gateway (default: MiniMax M2.1)
33
33
  # Create gateway at: https://vercel.com > AI > Gateways
34
34
  AI_GATEWAY_URL=https://gateway.ai.vercel.app/v1/your-team-id/your-gateway-id
35
35
  AI_API_KEY=
@@ -9,13 +9,12 @@ NEXT_PUBLIC_SUPABASE_ANON_KEY=your-anon-key
9
9
  # Supabase DB — https://supabase.com > Project Settings > Database > Connection string (URI)
10
10
  DATABASE_URL=postgresql://postgres:[password]@db.your-project-id.supabase.co:5432/postgres
11
11
 
12
- # AI — Vercel AI Gateway (default: Google Gemini 2.0 Flash — free tier)
12
+ # AI — Vercel AI Gateway (default: MiniMax M2.1)
13
13
  # Create gateway at: https://vercel.com > AI > Gateways
14
14
  AI_GATEWAY_URL=https://gateway.ai.vercel.app/v1/your-team-id/your-gateway-id
15
15
  AI_API_KEY=
16
- # Optional: override model (default: google/gemini-2.0-flash)
17
- # To use MiniMax: AI_MODEL=minimax/minimax-m2.7
18
- # AI_MODEL=google/gemini-2.0-flash
16
+ # Optional: override model (default: minimax/minimax-m2.1)
17
+ # AI_MODEL=minimax/minimax-m2.1
19
18
 
20
19
  # =============================================================================
21
20
  # OPTIONAL
@@ -5,4 +5,4 @@ const provider = createOpenAI({
5
5
  apiKey: process.env.AI_API_KEY ?? "",
6
6
  });
7
7
 
8
- export const aiModel = provider(process.env.AI_MODEL ?? "google/gemini-2.0-flash");
8
+ export const aiModel = provider(process.env.AI_MODEL ?? "minimax/minimax-m2.1");