diff --git a/composables/users.ts b/composables/users.ts index 416d1b0e..77b3cb56 100644 --- a/composables/users.ts +++ b/composables/users.ts @@ -52,6 +52,8 @@ async function loginTo(user?: Omit & { account?: AccountCr url: `https://${server}`, accessToken: user?.token, disableVersionCheck: !!config.public.disableVersionCheck, + // Suppress warning of `masto/fetch` usage + disableExperimentalWarning: true, }) if (!user?.token) { diff --git a/nuxt.config.ts b/nuxt.config.ts index 4820e682..804e5817 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -37,7 +37,9 @@ export default defineNuxtConfig({ '~/styles/dropdown.css', ], alias: { - querystring: 'rollup-plugin-node-polyfills/polyfills/qs', + 'querystring': 'rollup-plugin-node-polyfills/polyfills/qs', + 'masto/fetch': 'masto/fetch', + 'masto': 'masto/fetch', }, vite: { define: {