fix: check CI on local build and start (#182)

pull/183/head
Joaquín Sánchez 2022-11-27 16:04:04 +01:00 zatwierdzone przez GitHub
rodzic 3cbdf9eab5
commit 509ff9e016
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
3 zmienionych plików z 6 dodań i 2 usunięć

Wyświetl plik

@ -59,6 +59,7 @@
"prettier": "^2.8.0",
"rollup-plugin-node-polyfills": "^0.2.1",
"shiki": "^0.11.1",
"std-env": "^3.3.1",
"theme-vitesse": "^0.6.0",
"tippy.js": "^6.3.7",
"typescript": "^4.9.3",

Wyświetl plik

@ -44,6 +44,7 @@ specifiers:
prettier: ^2.8.0
rollup-plugin-node-polyfills: ^0.2.1
shiki: ^0.11.1
std-env: ^3.3.1
theme-vitesse: ^0.6.0
tippy.js: ^6.3.7
typescript: ^4.9.3
@ -101,6 +102,7 @@ devDependencies:
prettier: 2.8.0
rollup-plugin-node-polyfills: 0.2.1
shiki: 0.11.1
std-env: 3.3.1
theme-vitesse: 0.6.0
tippy.js: 6.3.7
typescript: 4.9.3

Wyświetl plik

@ -2,6 +2,7 @@
import _fs from 'unstorage/drivers/fs'
// @ts-expect-error unstorage needs to provide backwards-compatible subpath types
import _kv from 'unstorage/drivers/cloudflare-kv-http'
import { isCI } from 'std-env'
import { $fetch } from 'ohmyfetch'
import type { Storage } from 'unstorage'
@ -13,14 +14,14 @@ import { APP_NAME } from '~/constants'
const runtimeConfig = useRuntimeConfig()
export const HOST_DOMAIN = runtimeConfig.deployUrl
|| (process.dev ? 'http://localhost:5314' : 'https://elk.zone')
|| (process.dev || !isCI ? 'http://localhost:5314' : 'https://elk.zone')
const fs = _fs as typeof import('unstorage/dist/drivers/fs')['default']
const kv = _kv as typeof import('unstorage/dist/drivers/cloudflare-kv-http')['default']
const storage = useStorage() as Storage
if (process.dev) {
if (process.dev || !isCI) {
storage.mount('servers', fs({ base: 'node_modules/.cache/servers' }))
}
else {