Skip to content

Commit

Permalink
fix: use PKG_VERSION env var instead of importing package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
stipsan committed Apr 8, 2024
1 parent 9cd95b2 commit 3807429
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/VideoPlayer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import {useClient} from '../hooks/useClient'
import {MIN_ASPECT_RATIO} from '../util/constants'
import {getVideoSrc} from '../util/getVideoSrc'
import type {VideoAssetDocument} from '../util/types'
import pluginPkg from './../../package.json'

export default function VideoPlayer({
asset,
Expand Down Expand Up @@ -61,7 +60,7 @@ export default function VideoPlayer({
crossOrigin="anonymous"
metadata={{
player_name: 'Sanity Admin Dashboard',
player_version: pluginPkg.version,
player_version: process.env.PKG_VERSION,
page_type: 'Preview Player',
}}
style={{
Expand Down

0 comments on commit 3807429

Please sign in to comment.