mirror of
https://github.com/documenso/documenso.git
synced 2025-11-18 18:51:37 +10:00
feat: use dynamic version instead of hardcodded version
This commit is contained in:
@ -1,7 +1,9 @@
|
||||
import { registerInstance } from '@documenso/lib/server-only/telemetry/register-instance';
|
||||
|
||||
import packageInfo from '../package.json';
|
||||
|
||||
export const register = async () => {
|
||||
if (process.env.NEXT_RUNTIME === 'nodejs') {
|
||||
await registerInstance();
|
||||
await registerInstance({ version: packageInfo.version });
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user