I have a Nuxt3 app using server routes. The app works fine locally. However, after deployment to Vercel using vercel-edge preset, one of the routes for some reason is a 404.
When accessing this URL: https://modernmedtalk-dosstx.vercel.app/test and…
I am making a request to an API route, and the useFetch() method is returning HTML instead of JSON. I have attempted to comment out code blocks and manually test everything step-by-step to no avail. Is there something I am doing wrong? The API route…
I am sending data to a Nuxt 3 server side defineEventHandler. The data is correctly sent to it as a multipart/form content-type. However, I want to get the data in the FormData sent to defineEventHandler but when I use readMultipartFormDat(event) to…
First and foremost, using Windows. There are no errors in the console regarding hot-reload, and the page works just fine when I refresh it manually. Currently editing a file that's under ./components/Navigation.vue.
I'm using more or less default…
I have default project setup getting from nuxt3 document. I'm talk about this starting point : npx nuxi init .
The project is up and running on my local machine. Unfortunately output is not up to date in the devtools. For example I…
I'm working on a Nuxt 3 application where I need to generate a sitemap dynamically from a CMS using the method described for Nuxt Content. I'm using the built in /server/api/ directory to get this data for the rest of the app. My sitemap.xml.js file…
I have a Nuxt 3 application that I deploy to Azure Static Web App service in Azure DevOps pipeline.
After reading the configuration I've added some custom auth config and allowedRoles.
The problem I am facing is that the staticwebapp.config.json…
In Nuxt3, I am using useFetch to call this url endpoint:
company = await useFetch(`/api/company/${companyKey}/profile`)
Notice the extra /profile at the end? How can I organize my /server directory to cater to a url endpoint of this structure?
For…
I'm trying to proxy requests so that when I call http://localhost:3000/basePath/api it requests http://localhost:8080/api. I'm using the experimental routerules from Nitro to do this:
export default defineNuxtConfig({
nitro: {
…
i'm having trouble developing with Nuxt3, the problem is that sometimes edits in the code are not visible, it seems that Nitro caches something and I need to restart the server in order to see the updates. The most effective example is when I…
For SEO purposes I want to zip and distribute my files.
Both vite and nitro have compression options.
What's the difference between the two?
This is my nuxt.config.ts
export default defineNuxtConfig({
nitro: {
compressPublicAssets:…
I'm running a small api with nuxt3/nitro. It works like a proxy between my webapp and my regular api. So my nitro api receives files, I read them from the request using Formidable, and they get saved in formidable's PersistentFileinstances.
Now I…
I have a server route that reasons that I won't go into needs to http://my-domain.com/~/images/filename.jpg
I have created the folder structure with a folder name ~ and all works as I would expect however I cannot add this code to my repo as it…
does the concept of initing a db connection then attaching it to the nitroApp context within a plugin make sense?
usage is from api/hello and that does a { db} = useNitroApp()
this does work, im just wondering if this is a good thing to do or is…
So, there is a website on Nuxt3 (+Laravel API) that used to run on Vercel without any issues, and Google PageSpeed scored 85-90 points.
Now, the task is to deploy the entire infrastructure on Docker. As a result, there are about 10 containers on a…