@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

Dependents (0)

Package Sidebar

Install

npm i @solanyan/nuxt-ofetch-configure

Weekly Downloads

6

Version

1.1.7

License

MIT

Unpacked Size

8.03 kB

Total Files

7

Last publish

Collaborators

  • solanyan