Skip to content

Project connection issues | Something blocking connections in my project #1911

@b2z-digital

Description

@b2z-digital

Describe the bug

We’ve been developing an app (Alfie.ai) in the Bolt platform that connects to our Supabase backend. The project had been working perfectly for weeks, but recently Supabase-related functionality stopped working within the Bolt environment, even though:

  • The app builds successfully
  • Supabase credentials load via Vite environment variables
  • Supabase client initializes (confirmed via console logs)
  • No code changes to Supabase config from when it last worked
  • The same app and Supabase project work correctly outside Bolt (local dev or production)

The issue:
• window.supabase or globalThis.supabase often logs as undefined in the Bolt browser console
• Calls like supabase.auth.getSession() fail with Cannot read properties of undefined (reading 'auth')
• Supabase appears to initialize in the terminal logs but the client isn’t reliably available in the browser
• Reinstalling dependencies, restarting the dev server, and re-running Supabase migrations have no effect
• Supabase project itself is functional — we can connect via other environments and the Supabase dashboard

Link to the blitz that caused the error

https://stackblitz.com/edit/alfie-ai

Steps to reproduce

  • Open the app and log in using '[email protected]' and 'Neilpryde55' as password.
  • The app will open. In the top right is a avatar menu. If you click Tools hub, it will take you to the tools dashboard
  • If you try opening a tool such as eCommerce Tools or content tools, you will see database fetch issues as it tries to retireve data
  • The api connection in the eCommerce tools is also no longer working (was connected to woocommerce api.

Is it like there is something blocking data in and out of this project???

Expected behavior

The app shoudl open and when interacting with the tools such as eCommerce and Content Tools, you should see stored information that was previously captured in the app. It all just stopped working.

Parity with Local

Screenshots

Image Image

Platform

Browser name  = Chrome
Full version  = 137.0.0.0
Major version = 137
navigator.appName = Netscape
navigator.userAgent = Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36
performance.memory = {
  "totalJSHeapSize": 109375679,
  "usedJSHeapSize": 106631187,
  "jsHeapSizeLimit": 4294705152
}
Hash = 10996a95

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions