@marvs13/marvinel-nextjs-supabase-starting-kit 1.0.7 → 1.0.8

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.
Files changed (39) hide show
  1. package/cli.js +1 -1
  2. package/package.json +1 -1
  3. package/template/{lib → src/lib}/supabase/proxy.ts +8 -0
  4. package/template/src/lib/utils.ts +11 -0
  5. package/template/lib/utils.ts +0 -6
  6. /package/template/{app → src/app}/(auth)/change-password/page.tsx +0 -0
  7. /package/template/{app → src/app}/(auth)/login/page.tsx +0 -0
  8. /package/template/{app → src/app}/(auth)/request-reset-password/page.tsx +0 -0
  9. /package/template/{app → src/app}/(auth)/reset-password/page.tsx +0 -0
  10. /package/template/{app → src/app}/(auth)/signup/page.tsx +0 -0
  11. /package/template/{app → src/app}/(auth)/signup-success/page.tsx +0 -0
  12. /package/template/{app → src/app}/favicon.ico +0 -0
  13. /package/template/{app → src/app}/globals.css +0 -0
  14. /package/template/{app → src/app}/home/page.tsx +0 -0
  15. /package/template/{app → src/app}/layout.tsx +0 -0
  16. /package/template/{app → src/app}/not-found.tsx +0 -0
  17. /package/template/{app → src/app}/page.tsx +0 -0
  18. /package/template/{components → src/components}/forms/change-password.tsx +0 -0
  19. /package/template/{components → src/components}/forms/login-form.tsx +0 -0
  20. /package/template/{components → src/components}/forms/request-reset-password-form.tsx +0 -0
  21. /package/template/{components → src/components}/forms/reset-password-form.tsx +0 -0
  22. /package/template/{components → src/components}/forms/signup-form.tsx +0 -0
  23. /package/template/{components → src/components}/hero.tsx +0 -0
  24. /package/template/{components → src/components}/logout-button.tsx +0 -0
  25. /package/template/{components → src/components}/page-not-found.tsx +0 -0
  26. /package/template/{components → src/components}/ui/button.tsx +0 -0
  27. /package/template/{components → src/components}/ui/card.tsx +0 -0
  28. /package/template/{components → src/components}/ui/field.tsx +0 -0
  29. /package/template/{components → src/components}/ui/input-group.tsx +0 -0
  30. /package/template/{components → src/components}/ui/input.tsx +0 -0
  31. /package/template/{components → src/components}/ui/label.tsx +0 -0
  32. /package/template/{components → src/components}/ui/separator.tsx +0 -0
  33. /package/template/{components → src/components}/ui/spinner.tsx +0 -0
  34. /package/template/{components → src/components}/ui/textarea.tsx +0 -0
  35. /package/template/{hooks → src/hooks}/use-auth-form.ts +0 -0
  36. /package/template/{lib → src/lib}/supabase/client.ts +0 -0
  37. /package/template/{lib → src/lib}/supabase/server.ts +0 -0
  38. /package/template/{proxy.ts → src/proxy.ts} +0 -0
  39. /package/template/{schema → src/schema}/form-schema.ts +0 -0
package/cli.js CHANGED
@@ -31,7 +31,7 @@ try {
31
31
 
32
32
  // 1. Run Next.js installer
33
33
  execSync(
34
- `${execCommand} create-next-app@latest ${projectName} --ts --tailwind --eslint --app --src-dir --import-alias "@/*" --use-${packageManager} --yes`,
34
+ `${execCommand} create-next-app@latest ${projectName} --ts --tailwind --eslint --app --import-alias "@/*" --use-${packageManager} --yes`,
35
35
  { stdio: "inherit" },
36
36
  );
37
37
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marvs13/marvinel-nextjs-supabase-starting-kit",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "description": "A modern Next.js + Supabase starting kit with Tailwind, Zod, and shadcn/ui.",
5
5
  "main": "cli.js",
6
6
  "bin": {
@@ -2,11 +2,19 @@ import { type NextRequest, NextResponse } from "next/server";
2
2
 
3
3
  import { createServerClient } from "@supabase/ssr";
4
4
 
5
+ import { noSupabaseKeyYet } from "../utils";
6
+
5
7
  export async function updateSession(request: NextRequest) {
6
8
  let supabaseResponse = NextResponse.next({
7
9
  request,
8
10
  });
9
11
 
12
+ //TODO : Remove this check once you done setting up your Supabase key in your env.local file
13
+ // Go to env.local_example for the further instructions.
14
+ if (!noSupabaseKeyYet) {
15
+ return supabaseResponse;
16
+ }
17
+
10
18
  const supabase = createServerClient(
11
19
  process.env.NEXT_PUBLIC_SUPABASE_URL!,
12
20
  process.env.NEXT_PUBLIC_SUPABASE_PUBLISHABLE_KEY!,
@@ -0,0 +1,11 @@
1
+ import { type ClassValue, clsx } from "clsx";
2
+ import { twMerge } from "tailwind-merge";
3
+
4
+ export function cn(...inputs: ClassValue[]) {
5
+ return twMerge(clsx(inputs));
6
+ }
7
+
8
+ //TODO : You can remove this variable once you done setting up your env.local file
9
+ export const noSupabaseKeyYet =
10
+ process.env.NEXT_PUBLIC_SUPABASE_URL &&
11
+ process.env.NEXT_PUBLIC_SUPABASE_PUBLISHABLE_KEY;
@@ -1,6 +0,0 @@
1
- import { clsx, type ClassValue } from "clsx"
2
- import { twMerge } from "tailwind-merge"
3
-
4
- export function cn(...inputs: ClassValue[]) {
5
- return twMerge(clsx(inputs))
6
- }
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes