refactor: configure preview status with runtime config
This commit is contained in:
parent
83d313c47b
commit
08d629ea78
4 changed files with 8 additions and 8 deletions
|
@ -48,7 +48,6 @@ export default defineNuxtConfig({
|
|||
},
|
||||
},
|
||||
runtimeConfig: {
|
||||
env: isCI ? 'deployed' : 'local',
|
||||
deployUrl: !isCI
|
||||
? 'http://localhost:5314'
|
||||
: process.env.PULL_REQUEST === 'true'
|
||||
|
@ -60,6 +59,7 @@ export default defineNuxtConfig({
|
|||
apiToken: '',
|
||||
},
|
||||
public: {
|
||||
env: isCI ? process.env.PULL_REQUEST === 'true' ? 'production' : 'staging' : 'local',
|
||||
translateApi: '',
|
||||
// Masto uses Mastodon version checks to see what features are enabled.
|
||||
// Mastodon alternatives like GoToSocial will always fail these checks, so
|
||||
|
@ -67,7 +67,7 @@ export default defineNuxtConfig({
|
|||
disableVersionCheck: false,
|
||||
},
|
||||
storage: {
|
||||
driver: 'cloudflare',
|
||||
driver: isCI ? 'cloudflare' : 'fs',
|
||||
fsBase: 'node_modules/.cache/servers',
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue