mirror of
https://codeberg.org/SafeTwitch/safetwitch.git
synced 2024-12-22 05:12:57 -05:00
add dev text
This commit is contained in:
parent
9f345fe6c0
commit
531653c9c8
1 changed files with 9 additions and 1 deletions
|
@ -1,8 +1,16 @@
|
|||
<script lang="ts">
|
||||
const dev = import.meta.env.DEV
|
||||
|
||||
export default {
|
||||
setup() {
|
||||
let version = `${import.meta.env.SAFETWITCH_TAG}-${import.meta.env.SAFETWITCH_COMMIT_HASH}`
|
||||
|
||||
if (dev) {
|
||||
version = version + "-dev"
|
||||
}
|
||||
|
||||
return {
|
||||
version: `${import.meta.env.SAFETWITCH_TAG}-${import.meta.env.SAFETWITCH_COMMIT_HASH}`
|
||||
version
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue