refactor: move url choice into nuxt config
This commit is contained in:
parent
69d009d02a
commit
8376dcf565
2 changed files with 5 additions and 3 deletions
|
@ -46,7 +46,11 @@ export default defineNuxtConfig({
|
|||
},
|
||||
runtimeConfig: {
|
||||
env: isCI ? 'deployed' : 'local',
|
||||
deployUrl: process.env.PULL_REQUEST === 'true' ? process.env.DEPLOY_PRIME_URL : '',
|
||||
deployUrl: !isCI
|
||||
? 'http://localhost:5314'
|
||||
: process.env.PULL_REQUEST === 'true'
|
||||
? process.env.DEPLOY_PRIME_URL
|
||||
: 'https://elk.zone',
|
||||
cloudflare: {
|
||||
accountId: '',
|
||||
namespaceId: '',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue