New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@nuxthq/studio

Package Overview
Dependencies
Maintainers
8
Versions
164
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nuxthq/studio

Enhance studio.nuxt.com features as a Nuxt module.

0.0.3
Source
npm
Version published
Weekly downloads
7.1K
10.88%
Maintainers
8
Weekly downloads
 
Created
Source

@nuxthq/studio

Enhance studio.nuxt.com features as a Nuxt module.

Installation

yarn add --dev @nuxthq/studio

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

import { defineNuxtConfig } from 'nuxt'

export default defineNuxtConfig({
  modules: [
    '@nuxthq/studio'
  ]
})

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

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

Usage

The module will expose an studio public runtime config:

const { studio } = useRuntimeConfig().public

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

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

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

NUXT_PUBLIC_STUDIO_API_URL=http://localhost:1337

Keywords

nuxt

FAQs

Package last updated on 29 Jul 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts