chore: migrate to masto/fetch (#479)
This commit is contained in:
parent
3391bce91b
commit
2339acaf5e
|
@ -52,6 +52,8 @@ async function loginTo(user?: Omit<UserLogin, 'account'> & { account?: AccountCr
|
|||
url: `https://${server}`,
|
||||
accessToken: user?.token,
|
||||
disableVersionCheck: !!config.public.disableVersionCheck,
|
||||
// Suppress warning of `masto/fetch` usage
|
||||
disableExperimentalWarning: true,
|
||||
})
|
||||
|
||||
if (!user?.token) {
|
||||
|
|
|
@ -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: {
|
||||
|
|
Loading…
Reference in a new issue