@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.
- package/cli.js +1 -1
- package/package.json +1 -1
- package/template/{lib → src/lib}/supabase/proxy.ts +8 -0
- package/template/src/lib/utils.ts +11 -0
- package/template/lib/utils.ts +0 -6
- /package/template/{app → src/app}/(auth)/change-password/page.tsx +0 -0
- /package/template/{app → src/app}/(auth)/login/page.tsx +0 -0
- /package/template/{app → src/app}/(auth)/request-reset-password/page.tsx +0 -0
- /package/template/{app → src/app}/(auth)/reset-password/page.tsx +0 -0
- /package/template/{app → src/app}/(auth)/signup/page.tsx +0 -0
- /package/template/{app → src/app}/(auth)/signup-success/page.tsx +0 -0
- /package/template/{app → src/app}/favicon.ico +0 -0
- /package/template/{app → src/app}/globals.css +0 -0
- /package/template/{app → src/app}/home/page.tsx +0 -0
- /package/template/{app → src/app}/layout.tsx +0 -0
- /package/template/{app → src/app}/not-found.tsx +0 -0
- /package/template/{app → src/app}/page.tsx +0 -0
- /package/template/{components → src/components}/forms/change-password.tsx +0 -0
- /package/template/{components → src/components}/forms/login-form.tsx +0 -0
- /package/template/{components → src/components}/forms/request-reset-password-form.tsx +0 -0
- /package/template/{components → src/components}/forms/reset-password-form.tsx +0 -0
- /package/template/{components → src/components}/forms/signup-form.tsx +0 -0
- /package/template/{components → src/components}/hero.tsx +0 -0
- /package/template/{components → src/components}/logout-button.tsx +0 -0
- /package/template/{components → src/components}/page-not-found.tsx +0 -0
- /package/template/{components → src/components}/ui/button.tsx +0 -0
- /package/template/{components → src/components}/ui/card.tsx +0 -0
- /package/template/{components → src/components}/ui/field.tsx +0 -0
- /package/template/{components → src/components}/ui/input-group.tsx +0 -0
- /package/template/{components → src/components}/ui/input.tsx +0 -0
- /package/template/{components → src/components}/ui/label.tsx +0 -0
- /package/template/{components → src/components}/ui/separator.tsx +0 -0
- /package/template/{components → src/components}/ui/spinner.tsx +0 -0
- /package/template/{components → src/components}/ui/textarea.tsx +0 -0
- /package/template/{hooks → src/hooks}/use-auth-form.ts +0 -0
- /package/template/{lib → src/lib}/supabase/client.ts +0 -0
- /package/template/{lib → src/lib}/supabase/server.ts +0 -0
- /package/template/{proxy.ts → src/proxy.ts} +0 -0
- /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 --
|
|
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
|
@@ -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;
|
package/template/lib/utils.ts
DELETED
|
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
|
|
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
|
|
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
|