refactor: flatten monorepo structure to backend/ frontend/ devops/

Rename subdirectories for a cleaner single-repo layout:
- website-monitoring-backend/  → backend/
- website-monitoring-frontend/ → frontend/
- website-monitoring-devops/   → devops/

Update all references in package.json scripts, CI workflows,
docker-compose, pre-commit hooks, and documentation.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
Dennis
2026-03-07 00:25:29 +01:00
parent 4607af8def
commit 50e25e3ee8
253 changed files with 54 additions and 51 deletions
@@ -0,0 +1,14 @@
-- Fix RLS policies for user profile creation during registration
-- The issue is that during registration, auth.uid() might not be available yet
-- Add a more permissive policy for user profile creation during registration
-- This allows inserting user profiles with the user's own ID
CREATE POLICY "Allow user profile creation during registration" ON "public"."users"
FOR INSERT TO "anon" WITH CHECK (true);
-- Also allow authenticated users to create their own profile
CREATE POLICY "Allow authenticated user profile creation" ON "public"."users"
FOR INSERT TO "authenticated" WITH CHECK (auth.uid() = id);
-- Refresh schema cache
NOTIFY pgrst, 'reload schema';