Theo's Typesafe CultTTC
Theo's Typesafe Cult4y ago
4 replies
Mordi

T3 & Plausible proxy setup

I am having a some issues configuring plausible as a proxy on my t3-project running on Vercel. Since I am using NextJS & Vercel I want to use next-plausible and I am following the example on their gh-page.
https://github.com/4lejandrito/next-plausible#proxy-the-analytics-script

My
next.config.mjs
looks like this
import { withPlausibleProxy } from "next-plausible";

function defineNextConfig(config) {
  return withPlausibleProxy()({ config });
}

export default defineNextConfig({
  // your custom config....
})


when running the app I get warnings saying that warn - Invalid next.config.js options detected: ... which is true since config properties like whitelisted pages to receive images from are not being read.

I am almost 100% sure I am doing something wrong with this step from the docs:
const { withPlausibleProxy } = require('next-plausible')

module.exports = withPlausibleProxy()({
  // ...your next js config, if any
})


also does anyone know how well plausible proxied deals with Brave & ublock origin?
Was this page helpful?