From ebe0b884ac01f696322f326d83ce41edd1957256 Mon Sep 17 00:00:00 2001 From: Arthur DANJOU Date: Sun, 2 Feb 2025 19:31:26 +0100 Subject: [PATCH] Add @nuxthq/studio and enable Nuxt Studio preview API This commit adds the @nuxthq/studio dependency to package.json and configures the Nuxt Studio preview API in nuxt.config.ts. These changes enable preview functionality for better content management in a Nuxt application. --- nuxt.config.ts | 3 +++ package.json | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/nuxt.config.ts b/nuxt.config.ts index adf8602..54de88c 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -34,6 +34,9 @@ export default defineNuxtConfig({ // Nuxt Content content: { + preview: { + api: 'https://api.nuxt.studio', + }, build: { markdown: { highlight: { diff --git a/package.json b/package.json index 2464af3..55bfec6 100644 --- a/package.json +++ b/package.json @@ -17,6 +17,7 @@ "@nuxt/content": "3.0.1", "@nuxt/image": "^1.9.0", "@nuxt/ui": "3.0.0-alpha.12", + "@nuxthq/studio": "2.2.1", "@nuxthub/core": "^0.8.15", "@nuxtjs/google-fonts": "^3.2.0", "@nuxtjs/i18n": "9.1.5", @@ -36,8 +37,8 @@ "@tailwindcss/typography": "^0.5.16", "@types/node": "^22.12.0", "@vueuse/core": "^12.5.0", - "@vueuse/nuxt": "^12.5.0", "@vueuse/math": "^12.5.0", + "@vueuse/nuxt": "^12.5.0", "drizzle-kit": "^0.30.3", "eslint": "^9.19.0", "typescript": "^5.7.3",