79 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
1
answer
47
views
Nuxt /server auto-imported types not updating
I can't seem to find anything related to my problem, so I'm currently not even sure I'm searching for the right things. I would be very glad if someone could give me any pointers.
My problem:
Inside ...
0
votes
0
answers
76
views
Using Nitro with Sidequest, exporting functions to be used by external dependency?
I'm trying to use Nitro with Sidequest for queues.
Sidequest has to do some specific importing of the "job" files, as explained here:
https://docs.sidequestjs.com/jobs/manual-resolution#...
-1
votes
1
answer
619
views
Trying to dockerize TanStack application
I am following hosting docs for TanStack Start with Nitro hosting in order to dockerize the app.
So, in the docs there is instrution to get nitro-nightly package
npm i nitro-nightly
After that, code ...
-1
votes
1
answer
200
views
Nuxt 4 build in production mode is trying to access public folder from .output/server/chunks/public instead of .output/public
I have a nuxt 4 app, with vuetify and sidebase nuxt auth. It runs normally during development, but when i build it and serve it using node .output/server/index.mjs, the page does not load, i can see ...
0
votes
0
answers
62
views
nuxt build error: appendHeader is not defined
I have the following problem: there is no issue when I run npm run dev everything works fine. However, when I run npm run build I get the following error:
Console:
[plugin @tailwindcss/vite:generate:...
0
votes
0
answers
83
views
Cant read `useStorage` data on the client-side
I have a Nuxt 3 app where I use useStorage to persist some json data.
Right now I have a Nitro plugin that runs on startup and loads the data from an external API, like this:
import { ...
0
votes
0
answers
44
views
Nuxt SSR not working properly with PM2 in Ubuntu
Suddenly my nuxt project which running in ubuntu with nginx doesn't work propertly with SSR
Operating System: Linux
Node Version: v20.18.0
Nuxt Version: 3.15.4
CLI Version: 3.21.1
Nitro ...
0
votes
0
answers
48
views
Nuxt 3 ISR on Cloudflare Not Fetching Fresh API Data After Prerendering
I have a Nuxt 3 app using useAsyncData with a pre-rendering approach. The API call is made as follows:
const { data: accommodation, refresh } = await useAsyncData(`accommodations/${locale.value}/${...
0
votes
0
answers
114
views
Nuxt - Redirect client from server with sendRedirect not working
Im trying to handle unauthorized errors from an external api. When the status code 403 comes in the client should be redirected to the login page directly from the server if possible.
Im using the ...
0
votes
1
answer
136
views
How to apply nuxt server middleware to pages only?
I use nuxt server middlewares in my project. They catch every request, whenever it's a page defined in the pages directory or something else (static assets etc). I want to limit some of my middlewares ...
0
votes
0
answers
68
views
Nuxt3 Nitro keeps disconnecting mysql connection
I've had a problem with Nuxt3 for some time, or more precisely with Nitro built into it. I'm using the experimental "database" option and I'm using mysql2 as a connector. The problem is that ...
1
vote
1
answer
345
views
struggling to use custom fs storage plugin in nuxt3 app on nitro server
I'm trying to set up a custom storage plugin in nuxt using unstorage within nitroPlugin.
I simply need to create API endpoints reading a local directory and returning files from there. It looks like a ...
0
votes
0
answers
28
views
Problem adding html attribute in SWR Mode
In my nuxt application I set the route '/' to swr. But I need to add a class to the html element according to the 'app-theme' cookies. But I can't do this because it's in SWR mode. Is there any way to ...
4
votes
0
answers
86
views
Dynamic import Nuxt 3 (Nitro)
How can I use dynamic import in nuxt 3 (nitro)?
src/server/api/urls.ts:
This method works
export default defineEventHandler(async event => {
const module = await import('../../../utils/...
0
votes
0
answers
82
views
How to log the version of my Nuxt app on server startup?
I want to write out a log line that reads "started version 0.4.0" when I start up the server, where the version is taken from the package.json file.
I defined a module and I'm passing it the ...