mirror of
https://github.com/jellyfin/jellyfin-vue.git
synced 2025-05-17 05:36:40 +00:00
10 lines
285 B
TypeScript
10 lines
285 B
TypeScript
/**
|
|
* Get commit hash
|
|
*/
|
|
const commit_available = !Number(process.env.IS_STABLE) && !!process.env.COMMIT_HASH;
|
|
const commit_hash = (commit_available && `'${process.env.COMMIT_HASH}'`) || undefined;
|
|
|
|
export default {
|
|
'virtual:commit': `export const commit_hash = ${commit_hash}`
|
|
};
|