Nuxt

N

Nuxt

Nuxt Community Chat Server

Join

Custom Routing in Nuxt 3 with Nuxt/content 3

I've been grappling with implementing custom routing in a Nuxt3 project for the past two days without success. The current website is built on WordPress and features dynamic URLs such as: /parent-page-slug (10 pages) /traing-page-slug (6) /article-slug (200+) /testimonial-slug (50+)...

Error : prisma/client/index-browser

Hallo everyone, i got an error while build & preview my project, here is the error code and screenshot. Error:...
Preview

Prerender with I18n differentDomain and strategy: prefix_except_default

Let's say we have 3 locales: test.com, test.com/de, test.nl. As you may see we do have 2 homepages with the same route: / but within a different domain. Is it possible to prerender both pages?

Dark mode with neutral color seems to be broken in the UI docs

I just entered the site and had the preference to see the docs with neutral colors and in dark mode and now seems that the last update on the docs brokes the dark mode with neutral color. I tested it in multiple browsers and looks the same.

API Keys

Asked this question before, but its still not quite clear for me. I'm trying to implement API keys into my server part, the frontend does requests to the backend API. I would like for the API key to not be exposed to the frontend. What are my options here? The client wants data to show on the frontend for everyone, but for people to use the API they should receive a key. For me it kind of sounds like we're solving exactly nothing. Please let me know your thoughts...

Nuxt deployment on Digital Ocean API calls EXTREMELY slow

Hey guys so I just deployed my app to Digital Ocean following the official documentation and it is painfully slow on the api folder calls. I have also confirmed that it is not even using 30% of the available cpu/memory, it is something related to the app itself. Can someone please help me?...

nuxt/fonts + tailwind 4 + google fonts Error: Unknown font format

hello, i am trying to use a google font in my project. the font is declared using the new tailwind config in css token this is wha the nuxt/fonts documentation say about how to setup it in this case fonts: {...

We're deploying to Vercel but it appears new deployments do not propagate to clients

We're deploying to Vercel but it appears new deployments do not propagate to clients until they hard reload the page. What might be the cause of this? Is this a Vercel issue or some nuxt config I need to use?

What is the easiest way to preview my Nuxt 3 site locally with HTTPS enabled?

I've just finished running bun run build and bun run preview. I'm wondering if there is a Nuxt module that can help me preview my site locally with HTTPS enabled.

Are certain properties of the layer nuxt.config.ts ignored?

My Nuxt Layer has defined the following in nuxt.config.ts ``` future: { compatibilityVersion: 4,...

Is there a way to share my .editorconfig file from my layer to my project?

I have started working on a Nuxt 3 Layer which I plan to use as a base for many of my future Nuxt projects. Is there a way that I can maintain an .editorconfig file in the layer and have each of my future projects make use of this file somehow? Perhaps more generally I would wonder if there is a way I can copy over files from an NPM package into my local project when I am installing the layer for the first time....

Components props?

how i can pass values to a component @kapa.ai...

How can I create a redirect while preserving some of the path params of the route?

For example, redirect from "/en/user/<id>" to "/en/user/<username>" the "en" is a path param.

Nuxt Content - API for Remark/Rehype extension configuration options

I would like to change the default "Footnotes" label to "Notes". I'm not sure how this is exposed in nuxt.config. It's not clear which extensions are being used and how to access their configuration API. I have tried options like this with no luck ``` "remark-gfm": { gfmFootnoteHtml: {...

Error on Postcss if I want to use custom classes with tailwind on Nuxt3

So I have a component that I'm using tailwind, some of the classes are customised, and they're already inside @layer components {}, so I can use them: ``` something { @apply text-title1; }...
No description

layout slot issue

Hello, For some reason, my footer ends up above my layout slot everytime I change page.... then it goes back to normal if I refresh the page The template of my App.vue :...

[Vue warn]: Failed to resolve component: ModalComponent

I'm having this error, I'm basically using this component and passing data to it under a component [Vue warn]: Failed to resolve component: ModalComponent If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement....

Issues with Cloudflare Pages Deployment in combination with content module

Hi everyone, I hope I can find a solution here after few hours of searching. I am currently setting up a nuxt project where we want to host the content as Markdown. We want to do the deployment via CloudFlare Pages. Currently I have problems that the pipeline of CloudFlare cannot find the database D1 when building. Here is the build log: https://gist.github.com/TheMeinerLP/4896ecfb875284de33d6e6fa8bec8766 Here is the repo on Github: https://github.com/OneLiteFeatherNET/Launchpad...

Problem with NUXT UI Components

Hi! I'm trying to use some components but i can't. I cloned the dashboard template to don't start from scratch. Components like: - UNavigationAccordion from Pro - UVerticalNavigation...
No description

ohash error eferenceError: Cannot access 'defaults' before initialization

Nitro fails to starts: I've tracked the problem to ohash function: ```js...
Next