Typescript error with NextJs 'supabaseUrl'
So I followed the guide to create my .env.local file and set up my supaBaseClient.ts file. Everything is set up exactly as the docs suggest, but I get an error if I run my build command for the "supabaseUrl" that reads:
"Argument of type 'string | undefined' is not assignable to parameter of type 'string'.
Type 'undefined' is not assignable to type 'string'."
If I remove the env variables from the supabaseClient file and replace them with hard coded strings, everything seems to build/run just fine.
Has anyone run into this issue before and successfully solved it?
"Argument of type 'string | undefined' is not assignable to parameter of type 'string'.
Type 'undefined' is not assignable to type 'string'."
If I remove the env variables from the supabaseClient file and replace them with hard coded strings, everything seems to build/run just fine.
Has anyone run into this issue before and successfully solved it?