salomon_.
Explore posts from serversIs there rewrites in middleware?
Hi, how would you do it? I couldn't find rewrites in nitro docs too. In nextjs for example, I did this with
NextResponse.rewrite
.
Basically what I need to do is: the url should be website.com/:country/:region/:city
but it should match pages/hotels/[...slug].vue
component (route). Is that possible?10 replies
Fetch only once on initial page load
@kapa.ai is it possible to avoid fetch on client side?
import type { HeroSlide } from './types';
export const getHeroSliders = () => {
return useAsyncData<{ data: HeroSlide[] }>(
hero-sliders
,
() => useNuxtApp().$apiFetch('/sliders'),
{
lazy: true,
server: true,
},
);
};20 replies
Fetch only once on initial page load
@kapa.ai I need to fetch data for hero section on server side and refetch data on locale change but also cache data between pages
and on page where get data
but nuxt loading indicator always shows on locale change and data is not change for new locale
20 replies
DTDrizzle Team
•Created by veeque on 1/21/2025 in #help
What is the recommended way to have a staging and a production environment?
And just run drizzle.config for different environment
4 replies
DTDrizzle Team
•Created by veeque on 1/21/2025 in #help
What is the recommended way to have a staging and a production environment?
Also you can use a tool such as https://www.npmjs.com/package/dotenv#-manage-multiple-environments
4 replies
DTDrizzle Team
•Created by veeque on 1/21/2025 in #help
What is the recommended way to have a staging and a production environment?
4 replies
DTDrizzle Team
•Created by 균어 on 3/5/2024 in #help
How to get findMany with count?
Hey, did you find a solution? Have same question
9 replies
Correct way to get cookie from the rest api
@rohrig Let me explain a bit. So, now I have a dashboard built with django as a rest api and vue 3 (spa) on frontend side. I have a static auth pages, login, signup, etc served by django so it generates and pass token and session to the client. The index.html of spa app is also served by django so I always have the csrftoken to do a rest api like post etc. So I have a kinda hybrid app where we use static django pages for login and then redirect to the spa. But now I need to ged rid of the static pages. So looking for a way to do an auth flow
17 replies