1.1.7 • Published 2 years ago

@solanyan/nuxt-ofetch-configure v1.1.7

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

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

1.1.7

2 years ago

1.1.6

2 years ago

1.1.5

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago