Source maps
See errors at src/checkout.ts:42 instead of index-3f9a2c.js:1:48213.
Set it up
The website comes from the Client ID your app already sets (NEXT_PUBLIC_DATABUDDY_CLIENT_ID, or VITE_DATABUDDY_CLIENT_ID including from .env). Set DATABUDDY_WEBSITE_ID if there's none.
There's no release or version to set. Maps match errors by file name, so built files need a content hash in their names, which Vite and Next.js add by default.
A failed upload never fails the build: the plugins print what went wrong and the build goes on. Set failOnError: true to fail it instead.
Options
Unchanged maps aren't sent again, so uploading on every deploy is cheap. For your own scripts, uploadSourceMaps(dir) from @databuddy/sdk/sourcemaps is the same uploader.
Not working?
Every line the tools print starts with Databuddy. A working build prints Databuddy source maps: 12 uploaded, 0 already stored, 0 failed. If that line is missing, the plugin didn't run in that build.
Skip uploads if your website serves maps
When a file has no uploaded map, Databuddy reads the map its script points to (sourceMappingURL comment, SourceMap header or data: URL), only from your website's domain and subdomains. Uploading is still better: your code stays private, and old builds keep mapping after you deploy over them.
Who sees your code
Maps are stored privately with Tigris, never served or published, and deleted with their website or organization.
Limits
Related
How is this guide?