fix: move config into nuxt.config

This commit is contained in:
Daniel Roe 2022-11-30 21:28:55 +00:00
parent c505543a73
commit 81c5a1c4f0
No known key found for this signature in database
GPG key ID: 22D5008E4F5D9B55
3 changed files with 14 additions and 6 deletions

View file

@ -59,10 +59,14 @@ export default defineNuxtConfig({
},
public: {
translateApi: '',
// Masto uses Mastodon version checks to see what features are enabled.
// Mastodon alternatives like GoToSocial will always fail these checks, so
// provide a way to disable them.
disableVersionCheck: false,
},
storage: {
driver: process.env.ELK_STORAGE_DRIVER || 'cloudflare', // 'cloudflare' | 'fs'
fsBase: process.env.ELK_STORAGE_PATH ?? 'node_modules/.cache/servers',
driver: 'cloudflare',
fsBase: 'node_modules/.cache/servers',
},
},
nitro: {