14:04:56.280Z [v0] AuthProvider render - user: undefined loading: true14:04:56.313Z [v0] Auth check starting - connected: false publicKey: undefined14:04:56.313Z [v0] LocalStorage auth: exists14:04:56.315Z [v0] AuthProvider render - user: undefined loading: true14:04:57.019Z [v0] RLS context set successfully14:04:57.604Z [v0] User found: {"id":"091b1871-230e-4f7b-a1aa-65bed855a1ca","wallet_address":"HQWPvXNkaim2F9X7hqGUsY87tFeiBKa6zx1oTrSEs5Jg","created_at":"2025-09-10T16:34:02.070144+00:00","updated_at":"2025-09-10T16:34:02.070144+00:00"}14:04:57.604Z [v0] Auth check complete - setting loading to false14:04:57.606Z [v0] AuthProvider render - user: HQWPvXNkaim2F9X7hqGUsY87tFeiBKa6zx1oTrSEs5Jg loading: false
Great! I can see from the debug logs that the authentication is now working perfectly - the user is successfully found and authenticated. However, I notice you're still on the landing page instead of being redirected to the dashboard after authentication. Let me fix the redirect logic.
I can see the issue! The authentication is working perfectly, but there's a disconnect between the wallet connection state and the authentication state. The user is authenticated (as shown in the logs) but the wallet shows connected: false, preventing the redirect to the dashboard. Let me fix this.
I've fixed the authentication redirect issue by adding a check that runs immediately when the component mounts, regardless of wallet connection state. This ensures that if a user is already authenticated (which you are, based on the logs), they'll be redirected to the dashboard even if the wallet connection state is temporarily false. The fix also validates that the authentication is still within the 24-hour window before redirecting.
I have phantom and solflare on my mobile device already but when i did connect wallet option to get app from playstore or use web wallet was the only thing i saw , why is it so , i thought i should be able to Connect my existing solflare or phantom etc. [v0] Wallet provider error: at Object.onError [as current] (/components/wallet/wallet-provider) at Object.current (@solana/wallet-adapter-react) at (@solana/wallet-adapter-react) at (@solana/wallet-adapter-base-ui) at onClick (@solana/wallet-adapter-react-ui)
The issue is that the current wallet adapter configuration doesn't properly support mobile deep linking for Phantom and Solflare wallets. On mobile devices, these wallets need specific configuration to enable deep linking to your installed apps. Let me fix this by updating the wallet configuration to properly support mobile wallet integration.
I found the issue. The project is missing the Mobile Wallet Adapter (MWA) protocol which is essential for proper mobile wallet integration. Let me add the missing mobile wallet adapter package and update the configuration to support mobile wallets properly.
I've added the Mobile Wallet Adapter (MWA) protocol to properly support mobile wallets like Phantom and Solflare on mobile devices. The key changes include adding the @solana-mobile/wallet-adapter-mobile package and configuring the SolanaMobileWalletAdapter with proper app identity and authorization caching. This adapter must be placed first in the wallets array to ensure mobile wallet detection works correctly, allowing your installed Phantom and Solflare mobile apps to be recognized and connected to the dApp.
An error occurred during deployment. Please fix:
Running build in Washington, D.C., USA (East) – iad1
Build machine configuration: 2 cores, 8 GB
Retrieving list of deployment files...
Previous build caches not available
Downloading 105 deployment files...
Running "vercel build"
Vercel CLI 47.1.1
Running "install" command: `bun install`...
bun install v1.2.21 (7c45ed97)
Resolving dependencies
Resolved, downloaded and extracted [4432]
warn: incorrect peer dependency "react@18.3.1"
warn: incorrect peer dependency "react-dom@18.3.1"
warn: incorrect peer dependency "react@18.3.1"
warn: incorrect peer dependency "react@18.3.1"
Saved lockfile
+ @tailwindcss/postcss@4.1.13
+ @types/node@22.18.1 (v24.3.1 available)
+ @types/react@18.3.24 (v19.1.12 available)
+ @types/react-dom@18.3.7 (v19.1.9 available)
+ postcss@8.5.6
+ tailwindcss@4.1.13
+ tw-animate-css@1.3.3 (v1.3.8 available)
+ typescript@5.9.2
+ @hookform/resolvers@3.10.0 (v5.2.1 available)
+ @radix-ui/react-accordion@1.2.2 (v1.2.12 available)
+ @radix-ui/react-alert-dialog@1.1.4 (v1.1.15 available)
+ @radix-ui/react-aspect-ratio@1.1.1 (v1.1.7 available)
+ @radix-ui/react-avatar@1.1.2 (v1.1.10 available)
+ @radix-ui/react-checkbox@1.1.3 (v1.3.3 available)
+ @radix-ui/react-collapsible@1.1.2 (v1.1.12 available)
+ @radix-ui/react-context-menu@2.2.4 (v2.2.16 available)
+ @radix-ui/react-dialog@1.1.4 (v1.1.15 available)
+ @radix-ui/react-dropdown-menu@2.1.4 (v2.1.16 available)
+ @radix-ui/react-hover-card@1.1.4 (v1.1.15 available)
+ @radix-ui/react-label@2.1.1 (v2.1.7 available)
+ @radix-ui/react-menubar@1.1.4 (v1.1.16 available)
+ @radix-ui/react-navigation-menu@1.2.3 (v1.2.14 available)
+ @radix-ui/react-popover@1.1.4 (v1.1.15 available)
+ @radix-ui/react-progress@1.1.1 (v1.1.7 available)
+ @radix-ui/react-radio-group@1.2.2 (v1.3.8 available)
+ @radix-ui/react-scroll-area@1.2.2 (v1.2.10 available)
+ @radix-ui/react-select@2.1.4 (v2.2.6 available)
+ @radix-ui/react-separator@1.1.1 (v1.1.7 available)
+ @radix-ui/react-slider@1.2.2 (v1.3.6 available)
+ @radix-ui/react-slot@1.1.1 (v1.2.3 available)
+ @radix-ui/react-switch@1.1.2 (v1.2.6 available)
+ @radix-ui/react-tabs@1.1.2 (v1.1.13 available)
+ @radix-ui/react-toast@1.2.4 (v1.2.15 available)
+ @radix-ui/react-toggle@1.1.1 (v1.1.10 available)
+ @radix-ui/react-toggle-group@1.1.1 (v1.1.11 available)
+ @radix-ui/react-tooltip@1.1.6 (v1.2.8 available)
+ @remix-run/react@2.17.0
+ @solana-mobile/wallet-adapter-mobile@2.2.3
+ @solana/wallet-adapter-base@0.9.27
+ @solana/wallet-adapter-react@0.15.39
+ @solana/wallet-adapter-react-ui@0.9.39
+ @solana/wallet-adapter-wallets@0.19.37
+ @solana/web3.js@1.98.4
+ @supabase/ssr@0.7.0
+ @supabase/supabase-js@2.57.4
+ @sveltejs/kit@2.38.1
+ @vercel/analytics@1.5.0
+ autoprefixer@10.4.21
+ bs58@6.0.0
+ class-variance-authority@0.7.1
+ clsx@2.1.1
+ cmdk@1.0.4 (v1.1.1 available)
+ date-fns@4.1.0
+ embla-carousel-react@8.5.1 (v8.6.0 available)
+ geist@1.5.1
+ input-otp@1.4.1 (v1.4.2 available)
+ lucide-react@0.454.0 (v0.543.0 available)
+ next@14.2.16 (v15.5.3 available)
+ next-themes@0.4.6
+ qrcode@1.5.4
+ react@18.3.1 (v19.1.1 available)
+ react-day-picker@9.8.0 (v9.9.0 available)
+ react-dom@18.3.1 (v19.1.1 available)
+ react-hook-form@7.62.0
+ react-resizable-panels@2.1.9 (v3.0.5 available)
+ recharts@2.15.4 (v3.2.0 available)
+ sonner@1.7.4 (v2.0.7 available)
+ svelte@5.38.9
+ tailwind-merge@2.6.0 (v3.3.1 available)
+ tailwindcss-animate@1.0.7
+ vaul@0.9.9 (v1.1.2 available)
+ vue@3.5.21
+ vue-router@4.5.1
+ zod@3.25.67 (v4.1.5 available)
1115 packages installed [22.21s]
Blocked 3 postinstalls. Run `bun pm untrusted` for details.
Detected Next.js version: 14.2.16
Running "bun run build"
$ next build
Attention: Next.js now collects completely anonymous telemetry regarding usage.
This information is used to shape Next.js' roadmap and prioritize features.
You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:
https://nextjs.org/telemetry
▲ Next.js 14.2.16
Creating an optimized production build ...
Failed to compile.
./lib/supabase/server.ts
Error:
x You're importing a component that needs next/headers. That only works in a Server Component which is not supported in the pages/ directory. Read more: https://nextjs.org/docs/getting-started/
| react-essentials#server-components
|
|
,-[/vercel/path1/lib/supabase/server.ts:1:1]
1 | import { createServerClient } from "@supabase/ssr"
2 | import { cookies } from "next/headers"
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3 |
4 | export async function createClient() {
5 | const cookieStore = await cookies()
`----
Import trace for requested module:
./lib/supabase/server.ts
./lib/solana/payment-monitor.ts
./components/payment/payment-modal.tsx
./components/subscription/subscription-content.tsx
> Build failed because of webpack errors
error: script "build" exited with code 1
Error: Command "bun run build" exited with 1