DEV Community

Cover image for Setting up Umami with Vercel and Supabase

Setting up Umami with Vercel and Supabase

Juniper Bouchard on February 02, 2021

Hey! Just a little FYI, this post is probably quite outdated by now! It may still work, but I haven't tested it recently Let me start by saying ...
Collapse
 
argus profile image
Argus •

Unable to login with password umami for admin user, i get this error :

{"error": {"code": "500", "message": "A server error has occurred"}}

Collapse
 
julimancan profile image
Julian Bustos • • Edited

Mine works for a couple of minutes then it stops working..... but same error 500 Failed to load resource: the server responded with a status of 500 () on the dashboard
and on the tracked website i got this error:
POST https://****.vercel.app/api/collect 500

Collapse
 
tegarimansyah profile image
Tegar Imansyah •

I also got this error. After opening vercel's deployment functions logs, I realized that my generated password is consist of special characters and prisma failed to parse it. After I change my connection string in vercel with percent encoding, it works as expected.

Ref: stackoverflow.com/questions/636841...

Collapse
 
gomflo profile image
Hugo Gomez •

Thanks for the post, you have any idea how i can update my umami installation to the latest version? seems like when you deploy to vercel it doesnt "fork" the repository so i cant keep track of the latest changes.

Collapse
 
imjuniper profile image
Juniper Bouchard •

Hey! Sorry for the late answer, I must've dismissed the notification by accident.
I'm not sure how to update it if it isn't forked. I also had this issue, and ended up recreating the repo and Vercel project because of that.

Collapse
 
watheqalshowaiter profile image
Watheq Alshowaiter •

in the gatsby plugin gatsby-plugin-umami

  {
    resolve: `gatsby-plugin-umami`,
    options: {
      websiteId: 'UMAMI_WEBSITE_ID',
      srcUrl: 'https://umami.example.com/umami.js',
      includeInDevelopment: false,
      autoTrack: true,
      respectDoNotTrack: true
    },
  },
Enter fullscreen mode Exit fullscreen mode
  1. what should I do to get the websiteId?
  2. and also from I will bring the srcUrl?

I followed along with your tutorial using Vercel and supabase..

Collapse
 
zmnx00z profile image
zmnx00z •

Hi Jakob, thanks for the good intro. I wonder what are some features missing from umami at this point compared to Fathom? Thanks!

Collapse
 
imjuniper profile image
Juniper Bouchard •

I’d say private sharing, email reports, disabling tracking for myself so that I don’t skew the stats, and (it’s minor) 2FA support. A WordPress plugin would be nice too probably, but adding it with the code is easy enough.

Collapse
 
zmnx00z profile image
zmnx00z •

What is private sharing? If you don't mind. Thanks

Thread Thread
 
imjuniper profile image
Juniper Bouchard •

You can share the stats page, but it requires a password to be seen!

Thread Thread
 
zmnx00z profile image
zmnx00z •

Ah I see, thanks!

Collapse
 
fractal profile image
Fractal •

Are you using the same password in the bottom of that query? Is that a random password, or is that a Supabase API key?

Collapse
 
imjuniper profile image
Juniper Bouchard •

The password created in step 1 is reused in step 3, in the connection field. The hash salt is random however