We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
PKG_VERSION
package.json
1 parent 9cd95b2 commit 3807429Copy full SHA for 3807429
src/components/VideoPlayer.tsx
@@ -7,7 +7,6 @@ import {useClient} from '../hooks/useClient'
7
import {MIN_ASPECT_RATIO} from '../util/constants'
8
import {getVideoSrc} from '../util/getVideoSrc'
9
import type {VideoAssetDocument} from '../util/types'
10
-import pluginPkg from './../../package.json'
11
12
export default function VideoPlayer({
13
asset,
@@ -61,7 +60,7 @@ export default function VideoPlayer({
61
60
crossOrigin="anonymous"
62
metadata={{
63
player_name: 'Sanity Admin Dashboard',
64
- player_version: pluginPkg.version,
+ player_version: process.env.PKG_VERSION,
65
page_type: 'Preview Player',
66
}}
67
style={{
0 commit comments