codiini / supabase-auth

5 stars 2 forks source link

supabaseUrl is required #1

Open duvaldt opened 3 years ago

duvaldt commented 3 years ago

Hi,

When I follow the guide, or clone your repo the console complains that supabaseUrl is missing. Any ideas?


Uncaught Error: supabaseUrl is required.
    SupabaseClient SupabaseClient.js:44
    createClient index.js:8
    <anonymous> supabase.js:6
    js app.js:1114
    __webpack_require__ app.js:854
    fn app.js:151
    <anonymous> index.js:9
    js app.js:1090
    __webpack_require__ app.js:854
    fn app.js:151
    <anonymous> main.js:12
    js app.js:1078
    __webpack_require__ app.js:854
    fn app.js:151
    1 app.js:1138
    __webpack_require__ app.js:854
    checkDeferredModules app.js:46
    <anonymous> app.js:994
    <anonymous> app.js:997

I've tried entering the info manually in supabase.js but it didn't help.

duvaldt commented 3 years ago

Found it! Typo in .env..

.env VUE_APP_SUPABASE_PUBLIC_KEY=YOUR_SUPABSE_PUBLIC_KEY

supabase.js const supabaseAnonKey = process.env.VUE_APP_SUPABASE_KEY