Skip to content

Commit 3807429

Browse files
committed
fix: use PKG_VERSION env var instead of importing package.json
1 parent 9cd95b2 commit 3807429

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/components/VideoPlayer.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import {useClient} from '../hooks/useClient'
77
import {MIN_ASPECT_RATIO} from '../util/constants'
88
import {getVideoSrc} from '../util/getVideoSrc'
99
import type {VideoAssetDocument} from '../util/types'
10-
import pluginPkg from './../../package.json'
1110

1211
export default function VideoPlayer({
1312
asset,
@@ -61,7 +60,7 @@ export default function VideoPlayer({
6160
crossOrigin="anonymous"
6261
metadata={{
6362
player_name: 'Sanity Admin Dashboard',
64-
player_version: pluginPkg.version,
63+
player_version: process.env.PKG_VERSION,
6564
page_type: 'Preview Player',
6665
}}
6766
style={{

0 commit comments

Comments
 (0)