Nuxt

N

Nuxt

Nuxt Community Chat Server

Join

Exclude page from nested layout

Environment - Node Version: v20.19.5 - Nuxt Version: 4.2.1 - CLI Version: 3.30.0...

How to build my Nuxt 4 app in watch mode without serving the page (localhost:3000)

Hello, my question is if nuxt have some feature like building the app in watch mode but without serving it, nuxt dev builds in watch mode but serves it at localhost:3000, as far as I've looked in the docs the cli doesn't have some command like nuxt build --watch and if possible with the --prerender flag for static deployment builds. The purpose of this is that I'm building a desktop app example for electrobun, and since the page is rendered in a native webview window i just point it to the index.html in the .output, so i dont need the Nuxt app to be served at localhost:3000. PS: this is not a error or similar, i just would like to have the watch mode so i don't have to run nuxt build everytime i make a change on the frontend...

Two routes with the same page component

As the title says I'd like two different routes to make use of the same pages/mypage.vue component. How can I go about this?

issue with import { serverSupabaseServiceRole } from "#supabase/server";

"Only URLs with a scheme in: file, data, and node are supported by the default ESM loader. On Windows, absolute paths must be valid file:// URLs. Received protocol 'c:'" How can i fix it? With serverSupabaseClient works without any issue ... my envs SUPABASE_URL...

how to give types to a $plugin under nuxtApp?

i made app/plugins/app.ts which has some methods defined: ```ts export type AppPlugin = { error(v: { code: string; error: any }): void }...

🚨 Nuxt 3 Production Issue: useFetch Params Lost in Server API Route

Hello everyone! I'm running into a baffling issue where query parameters sent via useFetch are lost when the application is deployed to production (NO SSR), but work perfectly fine in my local environment. šŸ› The Problem When using useFetch to call a local Nuxt Server API route, the params (or query) object is correctly serialized and included in the network request on the client side. However, inside the server handler, getQuery(event) returns an object where all custom parameters are null or missing. ...

Transitions prevent render

Riddle me this folks, I have: ``` export default defineNuxtConfig({ compatibilityDate: "2024-11-01",...

i18n $t() typescript error

Hello, iam using the latest version of Nuxt and i18n, the nuxt module. Currenty Iam facing an error regarding the typescript error which display that the $t was not found. Unfornatley i dont know what to do. I already cleared the cache and recreated the types with bunx nuxt@latest prepare and also recreated the .lock file. Any help is appreciated!...
No description

How to use ProsePre components

I’m trying to dynamically insert a variable into a Python code block inside a <ProsePre> component. This is what I want to render (its working in .md file with nuxt-content but without real dynamic variable tho): ```python import test as ts...
No description

how to remove black border from UAvatar?

How can i remove that black border thing? Code: ```ts <UAvatarGroup :max="4">...
No description

Nuxt content not rendered when running docker image

This is strange. I changed my content for the content plugin to be cloned from a separate repo. This works fine in development and when I docker build on my maching and run that image, the app works well However, when we build the image in CI, the content does not render when I open the app. I am sure that the content directory is correctly cloned and available to docker context How can I debug this?...

How can I reduce imports from entry.js file?

My entry.js file is loaded with over 300 imports most of them - I dont really need to site load. is there any way to reduce it?...

Studio now requires a server-side route for authentication

Hello there! I'm trying to play a little bit with Studio to see if it can be used to fulfilled some internal projects. The current doc is saying in the "what changes" section: The only trade-off is that Studio now requires a server-side route for authentication. While static generation remains supported with Nuxt hybrid rendering, your site must be deployed on a platform that supports SSR....

Nuxt Studio issues

Had a few issues with the package. 1. It was not letting me access the /_studio route, even after a successful login. I had to add this to nuxt config: vite.optimizeDeps.include = ['brace-expansion']. The button to open the studio panel showed up after this. (nuxt content issue: 3306)...

null is not an object (evaluating 'instance.__vrv_devtools = info')

getting a weird error after JS is injected into the page. null is not an object (evaluating 'instance.__vrv_devtools = info') even on a page that has nothing except <template>. this is with a vite server....

Unable to fetch data from database

I am currently running localy and I am trying to fetch from my database, but all i get is undefined ```ts // my middleware in server import { auth } from "~/lib/auth";...

set idleTimeout when using bun preset

how do i set the idleTimeout parameter used by the Bun.serve server underneath when using nitro preset bun I cannot use other preset than bun, otherwise i get a weird error about ofetch missing as a package and if I use bun, I'm building a software with analytical queries which are supposed to take a longtime, but they end up 502 Gateawaiting because of idleTimeout...

How do I disable props and variables in Nuxt MDC

hey! I've been trying to find a way to fully disable props and variables in Nuxt MDC, with no success. I've got the following questions: 1. Is Nuxt MDC a viable tool for rendering user generated markdown content....

nuxt-auth-utils userSession empty on server side

I'm using nuxt 4.2.1 with nuxt-auth-utils 0.5.25 using the keycloak provider (OIDC), I can set the access and refresh tokens in the onSuccess hook in server/routes/auth/keycloak.get.ts using setUserSession. I can access these data on client side with the composable useUserSession(), but when I try to access the user session on server/api/auth/refresh.ts via getUserSession(event) I get an empty session only containing a different id, no tokens, firstName, lastName or other parts of th...
Next