@byu-oit/nuxt-sis-access-management v3.1.1
Setup
Install
:warning: Requires Nuxt version >= 2.13 :warning:
Install with yarn:
yarn add @byu-oit/nuxt-sis-access-managementInstall with npm:
npm install @byu-oit/nuxt-sis-access-managementnuxt.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
$axiosproperty on the context has to be merged into the nuxtContextinterface via declaration merging. Adding@byu-oit/nuxt-sis-access-managementto your types will import the types from the package and make typescript aware of the additions to theContextinterface.
Usage
Set the production environment variable in the nuxt.config file:
{
  publicRuntimeConfig: {
    production: process.env.PRODUCTION || true
  }
}3 years ago
3 years ago
3 years ago
4 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago