We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3bab3c commit 236d263Copy full SHA for 236d263
modules/oauth.ts
@@ -12,16 +12,8 @@ export default defineNuxtModule({
12
async setup() {
13
const nuxt = useNuxt()
14
15
- const { env, previewUrl, productionUrl } = await getEnv(nuxt.options.dev)
16
-
17
- let clientUri: string
18
- if (env === 'preview' && previewUrl) {
19
- clientUri = previewUrl
20
- } else if (env === 'release' && productionUrl) {
21
- clientUri = productionUrl
22
- } else {
23
- clientUri = 'http://127.0.0.1:3000'
24
- }
+ const { previewUrl, productionUrl } = await getEnv(nuxt.options.dev)
+ const clientUri = productionUrl || previewUrl || 'http://127.0.0.1:3000'
25
26
// bake it into a virtual file
27
addServerTemplate({
0 commit comments