This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

@nuxthq/admin-edge
TypeScript icon, indicating that this package has built-in type declarations

0.0.1-27627055.9933660 • Public • Published

@nuxthq/admin

Enhance Nuxt.com features as a Nuxt module.

Installation

yarn add --dev @nuxthq/admin

Then, register the module in your nuxt.config.js:

import { defineNuxtConfig } from 'nuxt'

export default defineNuxtConfig({
  buildModules: [
    '@nuxthq/admin'
  ]
})

If you want latest updates, please use @nuxthq/admin-edge in your package.json:

{
  "devDependencies": {
    "@nuxthq/admin": "npm:@nuxthq/admin-edge@latest"
  }
}

Usage

The module will expose an admin public runtime config:

const { admin } = useRuntimeConfig().public

admin.apiURL // default: https://api.nuxt.com

It will also expose the /api/_admin/components route to list the project components based on https://github.com/nuxtlabs/nuxt-component-meta.

You can configure the admin API URL by setting it in the .env or as environment variable in production:

NUXT_PUBLIC_ADMIN_API_URL=http://localhost:1337

Readme

Keywords

none

Package Sidebar

Install

npm i @nuxthq/admin-edge

Weekly Downloads

1

Version

0.0.1-27627055.9933660

License

MIT

Unpacked Size

19.5 kB

Total Files

17

Last publish

Collaborators

  • pi0
  • antfu
  • flosciante
  • farnabaz
  • atinux
  • benjamincanac
  • smarroufin
  • danielroe
  • larbish