feat: allow setting default server via env (#854)

This commit is contained in:
Daniel Roe 2023-01-07 13:38:31 -08:00 committed by GitHub
parent 697a88ac3d
commit 57fd9aeae2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 5 additions and 5 deletions

View file

@ -1,5 +1,6 @@
export default defineNuxtPlugin(async (nuxtApp) => {
const masto = createMasto()
publicServer.value = publicServer.value || useRuntimeConfig().public.defaultServer
if (process.client) {
const { query } = useRoute()