This commit is contained in:
Andras Bacsai
2022-11-03 15:17:31 +01:00
parent 9f3677b694
commit ba2db666aa
5 changed files with 18 additions and 12 deletions

View File

@@ -40,10 +40,11 @@ export async function refreshTags() {
try {
const { default: got } = await import('got')
try {
const tags = await got.get('https://get.coollabs.io/coolify/service-tags.json').text()
if (isDev) {
const tags = await fs.readFile('./devTags.json', 'utf8')
await fs.writeFile('./tags.json', tags)
} else {
const tags = await got.get('https://get.coollabs.io/coolify/service-tags.json').text()
await fs.writeFile('/app/tags.json', tags)
}
} catch (error) {