Attacler/Bart
Attacler/Bart
Explore posts from servers
DDeno
Created by Attacler/Bart on 11/29/2024 in #help
Vite [ERR_NOT_IMPLEMENTED]: Not implemented: http2.createSecureServer
Hi there, Im trying to run vite with https, however i always get the following error: [ERR_NOT_IMPLEMENTED]: Not implemented: http2.createSecureServer Does someone know how i can solve this?
2 replies
NNuxt
Created by Attacler/Bart on 9/16/2024 in #❓・help
Dont cache /api/**
Hi there, Im trying to cache all pages except the api routes. Does someone know how i can do this? My current routeRules:
{
"/api/**": {
swr: true,
},
"/**": {
cache: {
maxAge: 60 * 60 * 24,
},
},
}
{
"/api/**": {
swr: true,
},
"/**": {
cache: {
maxAge: 60 * 60 * 24,
},
},
}
I found this discussion: https://github.com/nuxt/nuxt/discussions/16048 but that does not solve it sadly.
3 replies
NNuxt
Created by Attacler/Bart on 8/28/2024 in #❓・help
How can i get the event within middleware?
Hi there, I need to know some of the headers (and some other details) from the event in middleware. However it seems like useEvent does not work. Does someone have an idea how i can make it work?
5 replies
NNuxt
Created by Attacler/Bart on 4/9/2024 in #❓・help
Nuxt useRoute is not reactive
Hi there, Im trying to use a computed with useRouter inside a Pinia store. A snippet of my code:
const route = useRoute();

const currentOrganisationID = computed(() => {
route.redirectedFrom;
console.log({ route });
return route.params.orgID;
});
const route = useRoute();

const currentOrganisationID = computed(() => {
route.redirectedFrom;
console.log({ route });
return route.params.orgID;
});
Somehow it looks like the console.log is never triggered altho i am using the variable inside of my Vue code.
2 replies
NNuxt
Created by Attacler/Bart on 5/11/2023 in #❓・help
WARN Duplicated imports "uuid", the one from "ProjectPath/server/utils/generate
I get this error alot for a project of mine. Basicly every export seems to be marked as duplicated imports. Does anyone got an idea about why this happends and how i can avoid it?
4 replies
NNuxt
Created by Attacler/Bart on 4/25/2023 in #❓・help
Github Codespace & Nuxt HMR not working
No description
2 replies
NNuxt
Created by Attacler/Bart on 2/10/2023 in #❓・help
Middleware on the client side?
Is it possible to make the middleware run on the client side? I need it to check authentication towards another service.
10 replies
DDeno
Created by Attacler/Bart on 1/24/2023 in #help
How can i return a base64 as file on Deno Deploy?
Could someone give me an example for this?
9 replies