mirror of
https://github.com/umami-software/umami.git
synced 2026-02-09 23:27:12 +01:00
Some checks failed
Node.js CI / build (push) Has been cancelled
Renames all files, components, database schema, API routes, hooks, messages, and build config from "recording" to "replay" terminology. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
24 lines
684 B
JavaScript
24 lines
684 B
JavaScript
import 'dotenv/config';
|
|
import commonjs from '@rollup/plugin-commonjs';
|
|
import resolve from '@rollup/plugin-node-resolve';
|
|
import replace from '@rollup/plugin-replace';
|
|
import terser from '@rollup/plugin-terser';
|
|
|
|
export default {
|
|
input: 'src/recorder/index.js',
|
|
output: {
|
|
file: 'public/recorder.js',
|
|
format: 'iife',
|
|
},
|
|
plugins: [
|
|
resolve({ browser: true }),
|
|
commonjs(),
|
|
replace({
|
|
__COLLECT_API_HOST__: process.env.COLLECT_API_HOST || '',
|
|
__COLLECT_REPLAY_ENDPOINT__: process.env.COLLECT_REPLAY_ENDPOINT || '/api/record',
|
|
delimiters: ['', ''],
|
|
preventAssignment: true,
|
|
}),
|
|
terser({ compress: { evaluate: false } }),
|
|
],
|
|
};
|