diff --git a/wan-pwa/.npmrc b/wan-pwa/.npmrc new file mode 100644 index 0000000..6f48347 --- /dev/null +++ b/wan-pwa/.npmrc @@ -0,0 +1,9 @@ +# Vercel build configuration +legacy-peer-deps=false +strict-peer-dependencies=false +auto-install-peers=true + +# Performance +prefer-offline=true +progress=false +loglevel=error diff --git a/wan-pwa/apps/web/package.json b/wan-pwa/apps/web/package.json index b34ccd9..4eba7bf 100644 --- a/wan-pwa/apps/web/package.json +++ b/wan-pwa/apps/web/package.json @@ -26,8 +26,8 @@ "lucide-react": "^0.454.0", "next": "15.0.3", "next-pwa": "^5.6.0", - "react": "^19.0.0-rc.0", - "react-dom": "^19.0.0-rc.0", + "react": "^18.2.0", + "react-dom": "^18.2.0", "react-hook-form": "^7.53.2", "sonner": "^1.7.1", "tailwind-merge": "^2.5.4", diff --git a/wan-pwa/apps/web/vercel.json b/wan-pwa/apps/web/vercel.json new file mode 100644 index 0000000..4d913b7 --- /dev/null +++ b/wan-pwa/apps/web/vercel.json @@ -0,0 +1,13 @@ +{ + "$schema": "https://openapi.vercel.sh/vercel.json", + "buildCommand": "cd ../.. && npm install && npm run build --filter=@wan-pwa/web", + "framework": "nextjs", + "installCommand": "npm install", + "regions": ["iad1"], + "env": { + "NEXT_PUBLIC_SUPABASE_URL": "@supabase-url", + "NEXT_PUBLIC_SUPABASE_ANON_KEY": "@supabase-anon-key", + "NEXT_PUBLIC_API_URL": "@api-url", + "NEXT_PUBLIC_APP_URL": "@app-url" + } +}