Skip to content

Commit

Permalink
feat: use different app name for dev
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Nov 29, 2022
1 parent cf63bce commit c85d9bb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { parseURL } from 'ufo'
import { $fetch } from 'ohmyfetch'
import type { Storage } from 'unstorage'

import { isCI } from 'std-env'
import cached from './cache-driver'

import type { AppInfo } from '~/types'
Expand Down Expand Up @@ -41,7 +42,7 @@ async function fetchAppInfo(server: string) {
const app: AppInfo = await $fetch(`https://${server}/api/v1/apps`, {
method: 'POST',
body: {
client_name: APP_NAME,
client_name: APP_NAME + (isCI ? '' : ' (dev)'),
redirect_uris,
scopes: 'read write follow push',
},
Expand Down

0 comments on commit c85d9bb

Please sign in to comment.