From 2339acaf5e500b94337c206ff6f4a014a5630152 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ry=C5=8D=20Igarashi?= Date: Wed, 21 Dec 2022 10:06:39 +0900 Subject: [PATCH] chore: migrate to masto/fetch (#479) --- composables/users.ts | 2 ++ nuxt.config.ts | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) 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: {