@byu-oit/nuxt-sis-access-management
TypeScript icon, indicating that this package has built-in type declarations

3.1.1 • Public • Published

Setup

Install

⚠️ Requires Nuxt version >= 2.13 ⚠️

Install with yarn:

yarn add @byu-oit/nuxt-sis-access-management

Install with npm:

npm install @byu-oit/nuxt-sis-access-management

nuxt.config.js

module.exports = {
    modules: [
        '@byu-oit/nuxt-sis-access-management',
    ],
}

Typescript

Add the types to your "types" array in tsconfig.json after the @nuxt/types (Nuxt 2.12.0+)

tsconfig.json

{
  "compilerOptions": {
    "types": [
      "@nuxt/types",
      "@byu-oit/nuxt-sis-access-management"
    ]
  }
}

Why?

Because of the way nuxt works the $axios property on the context has to be merged into the nuxt Context interface via declaration merging. Adding @byu-oit/nuxt-sis-access-management to your types will import the types from the package and make typescript aware of the additions to the Context interface.

Usage

Set the production environment variable in the nuxt.config file:

{
  publicRuntimeConfig: {
    production: process.env.PRODUCTION || true
  }
}

Package Sidebar

Install

npm i @byu-oit/nuxt-sis-access-management

Weekly Downloads

2

Version

3.1.1

License

Apache-2.0

Unpacked Size

24.6 kB

Total Files

17

Last publish

Collaborators

  • mjweather
  • yoshutch
  • lehinpm
  • oscea
  • stuft2
  • mhailstone
  • arasmus8
  • garygsc
  • martingarn
  • snelg
  • byu-oit-bot