@solanyan/nuxt-ofetch-configure
TypeScript icon, indicating that this package has built-in type declarations

1.1.7 • Public • Published

NOTICE

Not tested to work well.

FEATURE

  • Nuxt3 plugin (Not for nuxt2)
  • override globalThis.$fetch

Install

  • Run npm install @solanyan/nuxt-ofetch-configure
  • Add plugin file for install
    • import OfetchConfigureInstallHelper make install easy

Exsample

~/plugin/ofetch.ts

export default defineNuxtPlugin((nuxtApp) => {
    OfetchConfigureInstallHelper(nuxtApp, {
        baseURL: 'https://localhost:8443/',
        credentials: 'include',
        CSRF: {
            ENABLE: true,
        },
    })
})

Options

Licence

MIT License © 2022 Sola-nyan

Readme

Keywords

none

Package Sidebar

Install

npm i @solanyan/nuxt-ofetch-configure

Weekly Downloads

3

Version

1.1.7

License

MIT

Unpacked Size

8.03 kB

Total Files

7

Last publish

Collaborators

  • solanyan