0
Fork 0
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:
dragongoose 2023-11-30 18:29:55 -05:00
parent 9f345fe6c0
commit 531653c9c8
No known key found for this signature in database
GPG key ID: 01397EEC371CDAA5

View file

@ -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
}
}
}