1
0
Fork 1
mirror of https://github.com/elk-zone/elk.git synced 2024-11-20 07:49:57 +00:00

chore: migrate to masto/fetch (#479)

This commit is contained in:
Ryō Igarashi 2022-12-21 10:06:39 +09:00 committed by GitHub
parent 3391bce91b
commit 2339acaf5e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View file

@ -52,6 +52,8 @@ async function loginTo(user?: Omit<UserLogin, 'account'> & { account?: AccountCr
url: `https://${server}`, url: `https://${server}`,
accessToken: user?.token, accessToken: user?.token,
disableVersionCheck: !!config.public.disableVersionCheck, disableVersionCheck: !!config.public.disableVersionCheck,
// Suppress warning of `masto/fetch` usage
disableExperimentalWarning: true,
}) })
if (!user?.token) { if (!user?.token) {

View file

@ -37,7 +37,9 @@ export default defineNuxtConfig({
'~/styles/dropdown.css', '~/styles/dropdown.css',
], ],
alias: { alias: {
querystring: 'rollup-plugin-node-polyfills/polyfills/qs', 'querystring': 'rollup-plugin-node-polyfills/polyfills/qs',
'masto/fetch': 'masto/fetch',
'masto': 'masto/fetch',
}, },
vite: { vite: {
define: { define: {