Questions tagged [nitro]

Use [nitro] for questions about the Nitro Server Engine for Nuxt.js

Nitro is the server engine for Nuxt.js

40 questions
0
votes
1 answer

npsb; character is causing issues in nuxt3 production server

while posting a html encoded text to the server, the server side code works fine on the dev environment but when I publish it on a netlify server, the same request returns a 500 error and the server side request log middleware only detects a post…
xrayian
  • 151
  • 2
  • 11
0
votes
0 answers

Handling the Set-Cookie Header in Nuxt

How can I maintain the Prestashop set-cookie header for user identification when adding a product to cart in Nuxt 3 project using Prestashop as a REST API, as the cookie is currently lost at the Nuxt nitro server level and not being set on the…
ALOUI MH
  • 97
  • 1
  • 10
0
votes
1 answer

Reloading server in nuxt3js after Clear Cache

I have clear cache in my nuxt3js application with npx nuxi clean, this command removes .nuxt , .output , node_modules/.vite and node_modules/.cache. So inorder to run the app again I need to run npm install and then start the serve with npm run…
Gabriel Rogath
  • 710
  • 2
  • 8
  • 23
0
votes
1 answer

How to dynamically import module for nitro on nuxt app

Im trying to dynamically load modules from a nitro server in a nuxt app, but I get the following error: Cannot find module projectpath/.nuxt/services/listing imported from projectpath/.nuxt/dev/index.mjs This is the snippet of code Im using for the…
Javier Lopez
  • 191
  • 1
  • 6
  • 18
0
votes
1 answer

How to rename firebase functions in nuxt 3 using nitro?

Here's my nuxt.config.js // https://nuxt.com/docs/api/configuration/nuxt-config // eslint-disable-next-line no-undef export default defineNuxtConfig({ preset: 'node-server', modules: [ '@nuxtjs/tailwindcss', ], nitro: { preset:…
jofftiquez
  • 7,548
  • 10
  • 67
  • 121
0
votes
2 answers

How to test a function that uses Nitro's useStorage

I have created a function that allows to manage caching. I use this function to cache the responses to API calls. export const cache = async (key: string, callback: Function) => { const cacheKey = `cache:${key}`; const data = await…
0
votes
1 answer

Is it possible to extend this particular aspect of Nitro's runtime behaviour?

I'm experimenting with Nuxt 3, and was wondering if it was possible to override a particular part of Nitro's runtime behaviour. The Nuxt docs suggest extending Nitro's runtime behaviour is possible through server plugins, it's just a little thin on…
Nick Dawes
  • 2,089
  • 1
  • 13
  • 20
0
votes
1 answer

Using Firebase and Nuxt3 server routes error: "i.consume is not a function"?

I am trying to test out using Firebase with Nuxt3 server routes and for some reason get the following error: [nitro] [dev] [unhandledRejection] TypeError: i.consume is not a function I Googled and nothing came up, nor nothing here in stackoverflow…
redshift
  • 4,815
  • 13
  • 75
  • 138
0
votes
1 answer

Hide token on server side with NITRO and NUXT3 for security purpose

I am using fetch to call backend API, th eprobelm is the backend security is a token, for security purpose we can not expose this token on public configuration. I wanted to know if it is possible to put the token on server side params and then when…
cyril
  • 872
  • 6
  • 29
0
votes
0 answers

Getting ActiveCampaign API results to frontend in nuxt/vue app

I seem to be misunderstanding something about either the API I'm working with or how nuxt works. Tools ActiveCampaign API NuxtJS Goal I just want to get all contacts stored in my ActiveCampaign Account and display them on the frontend. Current…
Arrowcatch
  • 1,612
  • 3
  • 19
  • 26
1 2
3