valerio
valerio
NNuxt
Created by valerio on 3/7/2025 in #❓・help
Given that im building a nuxt app with aws-lambda preset, how can i apply callbackWaitsForEmptyEvent
Given that im building a nuxt app with aws-lambda preset, like:
nitro: {
preset: "aws-lambda",
inlineDynamicImports: true,
serveStatic: true,
}
nitro: {
preset: "aws-lambda",
inlineDynamicImports: true,
serveStatic: true,
}
how can i apply callbackWaitsForEmptyEvent to be false?
5 replies
NNuxt
Created by valerio on 3/6/2025 in #❓・help
How can nuxt use a stage name in its url? Im using AWS apigateway,
How can nuxt use a stage name in its url? Im using AWS apigateway, so a stage name, like /prod is appended at the end of the base URL. The nuxt app is not working and giving errors like: ...amazonaws.com/_nuxt/GlKMZ6mC.js is not found. Thats because it should be ...amazonaws.com/_nuxt/prod/GlKMZ6mC.js
5 replies
NNuxt
Created by valerio on 3/5/2025 in #❓・help
Is it possible to configure a static site generated nuxt app to also output a server for the APIs?
Is it possible to configure a static site generated nuxt app to also output a server for the APIs?
4 replies
NNuxt
Created by valerio on 3/5/2025 in #❓・help
How do you watch for body change in usefetch?
<script setup> const usersByLastName = reactive <UsersByLastName> ({ lastName: "" }); const { data, pending, error } = useFetch("/api/users/bylastname", { method: "POST", body: usersByLastName, }); </script> <template> <input v-model="usersByLastName.lastName" /> <div v-if="pending">Caricamento...</div> <div v-if="error">Errore: {{ error }}</div> <div v-if="data"> <ul> <li v-for="user in data.users"> {{ user.firstName }} {{user.lastName}} </li> </ul> </div> </template>
5 replies
NNuxt
Created by valerio on 3/5/2025 in #❓・help
What is the difference between static and prerender in routerules?
What is the difference between static and prerender in routerules?
5 replies
NNuxt
Created by valerio on 3/4/2025 in #❓・help
Is it possible to prerender all pages in ~/pages?
Is it possible to prerender all pages in ~/pages without having to specify them directly in the nuxt.config.ts file?
4 replies
NNuxt
Created by valerio on 3/4/2025 in #❓・help
How to do SSG and still build an API server?
I would like to serve the view of my nuxt app on a static CDN with pre-rendered HTML, while having the API server available on serverless functions.
6 replies
NNuxt
Created by valerio on 2/15/2025 in #❓・help
Deserialize object after its fetched
Is it possible to have a convenient function that takes a SerializeObject<T> and returns its content casted as a T?
5 replies
NNuxt
Created by valerio on 2/15/2025 in #❓・help
Vite alias depending on server or client script
How would one do an alias to dynamically import a library or another in Nuxt3, if the code has to be sent either to the frontend or if its worked upon in the backend?
6 replies