Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,12 @@ npm install
- `supabase/migrations/001_initial_schema.sql`
- `supabase/migrations/002_demo_type_and_guided_fields.sql`
- `supabase/migrations/003_admin_read_all_products.sql`
- `supabase/migrations/004_storage_product_images.sql`
- `supabase/migrations/005_rls_fixes.sql`
- `supabase/migrations/006_current_week_cycle.sql`
3. Enable **Google OAuth** (optional) under Authentication, Providers, Google.
4. Create a public **Storage bucket** named `product-images`.
4. Under **Authentication → URL Configuration**, set your production and local callback URLs (see Deploy section).
5. Storage is created by migration `004`; no manual bucket setup needed if migrations ran in order.

### 3. Configure environment

Expand Down
108 changes: 0 additions & 108 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion src/app/(auth)/login/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@
import { Suspense, useState } from "react";
import { useSearchParams } from "next/navigation";
import { createClient } from "@/lib/supabase/client";
import { safeRedirectPath } from "@/lib/safe-redirect";

function LoginForm() {
const [email, setEmail] = useState("");
const [sent, setSent] = useState(false);
const [loading, setLoading] = useState(false);
const [error, setError] = useState<string | null>(null);
const searchParams = useSearchParams();
const redirect = searchParams.get("redirect") || "/";
const redirect = safeRedirectPath(searchParams.get("redirect"));
const authError = searchParams.get("error");

const supabase = createClient();
Expand Down
Loading