I have created a new Fly Project today and I wanted to connect to an Existing Supabase Instance I have used while I was working on my Next JS App. First off all I used fly launch to create a new Project and then the following two Commands:
fly secrets set NEXT_PUBLIC_SUPABASE_URL=
fly secrets set NEXT_PUBLIC_SUPABASE_ANON_KEY=
The Values I got from my Supabase Instance. When I now try to deploy this, I am getting the following Error:
38.15 Error: @supabase/ssr: Your project’s URL and API key are required to create a Supabase client!
38.15
38.15 Check your Supabase project’s API settings to find these values
What am I missing to deploy the App sucessfully? I don’t want to create a new Supabase Instance if not needed.
No, nextjs is a backend framework too. Don’t use NEXT_PUBLIC_ prefixed env variables. You can continue to use the @supabase library, but only access it in your server components.