mirror of
https://codeberg.org/SafeTwitch/safetwitch.git
synced 2024-12-22 13:22:58 -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">
|
<script lang="ts">
|
||||||
|
const dev = import.meta.env.DEV
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
setup() {
|
setup() {
|
||||||
|
let version = `${import.meta.env.SAFETWITCH_TAG}-${import.meta.env.SAFETWITCH_COMMIT_HASH}`
|
||||||
|
|
||||||
|
if (dev) {
|
||||||
|
version = version + "-dev"
|
||||||
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
version: `${import.meta.env.SAFETWITCH_TAG}-${import.meta.env.SAFETWITCH_COMMIT_HASH}`
|
version
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue