mirror of
https://github.com/elk-zone/elk.git
synced 2024-11-19 23:40:07 +00:00
feat: use different app name for dev
This commit is contained in:
parent
cf63bce459
commit
c85d9bb913
1 changed files with 2 additions and 1 deletions
|
@ -7,6 +7,7 @@ import { parseURL } from 'ufo'
|
||||||
import { $fetch } from 'ohmyfetch'
|
import { $fetch } from 'ohmyfetch'
|
||||||
import type { Storage } from 'unstorage'
|
import type { Storage } from 'unstorage'
|
||||||
|
|
||||||
|
import { isCI } from 'std-env'
|
||||||
import cached from './cache-driver'
|
import cached from './cache-driver'
|
||||||
|
|
||||||
import type { AppInfo } from '~/types'
|
import type { AppInfo } from '~/types'
|
||||||
|
@ -41,7 +42,7 @@ async function fetchAppInfo(server: string) {
|
||||||
const app: AppInfo = await $fetch(`https://${server}/api/v1/apps`, {
|
const app: AppInfo = await $fetch(`https://${server}/api/v1/apps`, {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
body: {
|
body: {
|
||||||
client_name: APP_NAME,
|
client_name: APP_NAME + (isCI ? '' : ' (dev)'),
|
||||||
redirect_uris,
|
redirect_uris,
|
||||||
scopes: 'read write follow push',
|
scopes: 'read write follow push',
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue