Attacler/Bart
Attacler/Bart
Explore posts from servers
NNuxt
Created by Attacler/Bart on 8/28/2024 in #❓・help
How can i get the event within middleware?
in side server api routes i would have the event (ofc) but in this case it doesnt look like that.
5 replies
NNuxt
Created by Attacler/Bart on 8/28/2024 in #❓・help
How can i get the event within middleware?
my code is something like:
export default defineNuxtRouteMiddleware(async (to) => {
if (import.meta.server) {
const event = useEvent();

const user = await getUser(event);

if (user.status == "error") return navigateTo("/login");
else return;
// console.log("Server sided!");
}
}
export default defineNuxtRouteMiddleware(async (to) => {
if (import.meta.server) {
const event = useEvent();

const user = await getUser(event);

if (user.status == "error") return navigateTo("/login");
else return;
// console.log("Server sided!");
}
}
5 replies
NNuxt
Created by KareemDabbeet on 4/16/2024 in #❓・help
How to Implement (Apps Regsitrations) to a nuxt application during Runtime
what is the defenition of an app? right now it sounds alot like its a seperate nuxt project or something. anyway, most people make generic pages with parameters inside of the url or something like that. based on that you can query/show certain data
6 replies
NNuxt
Created by silvesterwali on 4/15/2024 in #❓・help
upload images
otherwise i guess that on a new deploy, its gonna clear the public folder
12 replies
NNuxt
Created by silvesterwali on 4/15/2024 in #❓・help
upload images
hmm i see, cant you use a static path outside of the frontend/nuxt folder?
12 replies
NNuxt
Created by silvesterwali on 4/15/2024 in #❓・help
upload images
you could hook it up to S3 or something if you want to
12 replies
NNuxt
Created by silvesterwali on 4/15/2024 in #❓・help
upload images
regarding uploading, the public directory is more meant for static uploads i guess on your next deploy it will be overwritten (depending on how your hosting is setted up)
12 replies
NNuxt
Created by silvesterwali on 4/15/2024 in #❓・help
upload images
any files that are in the public directory should be accessable directly for as far as i know
12 replies
NNuxt
Created by Denoic on 4/15/2024 in #❓・help
Why is the Nuxt dev server so slow?
no problem 🙂
18 replies
NNuxt
Created by Denoic on 4/15/2024 in #❓・help
Why is the Nuxt dev server so slow?
if you open devtools and make a change, is there any request that takes long before reponding?
18 replies
NNuxt
Created by Denoic on 4/15/2024 in #❓・help
Why is the Nuxt dev server so slow?
is it after a certain nuxt module is enabled? or is it always happening, also on a new project?
18 replies
NNuxt
Created by Denoic on 4/15/2024 in #❓・help
Why is the Nuxt dev server so slow?
maybe your calling a slow api or something? or is that always happening?
18 replies
NNuxt
Created by Attacler/Bart on 4/9/2024 in #❓・help
Nuxt useRoute is not reactive
solved it... multiple pinia stores had the same names
2 replies
NNuxt
Created by 🅜🅐🅡🅐🅖🅐🅣🅐🅘🅝 on 4/9/2024 in #❓・help
Prisma & Postgres (PgAdmin4)
this doesnt seem like a Nuxt question to me, maybe you can try to reach out to Prisma?
4 replies
NNuxt
Created by EliteEngineer on 3/28/2024 in #❓・help
How do i deploy my nuxt app to a vps
you could also use something like Railway or Fly.io, they handle the part of running your code
17 replies
NNuxt
Created by davestewart on 2/18/2024 in #❓・help
generate vs prerender
on how to make performant SSR, there are a bunch of articles, for example this article talks about it: https://www.vuemastery.com/blog/nuxt-3-performance-pt-1/
11 replies
NNuxt
Created by davestewart on 2/18/2024 in #❓・help
generate vs prerender
no, generate only makes clientsided code, not serversided code
11 replies
NNuxt
Created by davestewart on 2/18/2024 in #❓・help
generate vs prerender
from what i understand: generate -> make static html/css/js so your site works without any serverside rendering build -> build your nuxt application for production so you can run it in SSR
11 replies
NNuxt
Created by Attacler/Bart on 5/11/2023 in #❓・help
WARN Duplicated imports "uuid", the one from "ProjectPath/server/utils/generate
(the project is using layers/extends, the same functions where defined in the base repo)
4 replies
NNuxt
Created by Attacler/Bart on 5/11/2023 in #❓・help
WARN Duplicated imports "uuid", the one from "ProjectPath/server/utils/generate
okay, managed to solve it, nvm 🙂
4 replies