next-plausible icon indicating copy to clipboard operation
next-plausible copied to clipboard

Enabling only for vercel production deployments

Open 4lejandrito opened this issue 2 years ago • 2 comments

Using NEXT_PUBLIC_VERCEL_ENV as described in:

https://vercel.com/docs/concepts/projects/environment-variables

4lejandrito avatar Jun 07 '22 20:06 4lejandrito

@4lejandrito have you tried tested this in an actual deployment? It looks good to me.

JamesSingleton avatar Jul 10 '22 15:07 JamesSingleton

@4lejandrito have you tried tested this in an actual deployment? It looks good to me.

I've modified the tests so that they run on vercel and they work like a charm. You can see it for yourself too:

Preview deployment: https://vercel-next-plausible.vercel.app. (No tracking). Production deployment: https://next-plausible.vercel.app. (Tracking).

I'll publish these changes soon.

Thanks!

4lejandrito avatar Jul 13 '22 14:07 4lejandrito