charles1410
charles1410
NNuxt
Created by charles1410 on 6/27/2024 in #❓・help
Help with nested and dynamic routes pages
i set the prerender config:
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
devtools: { enabled: true },
modules: [
"@pinia/nuxt",
"@vueuse/nuxt",
"@nuxtjs/tailwindcss",
"nuxt-icon",
],


routeRules: {
"/order-service/technician/details/**": { prerender: true },
},
});
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
devtools: { enabled: true },
modules: [
"@pinia/nuxt",
"@vueuse/nuxt",
"@nuxtjs/tailwindcss",
"nuxt-icon",
],


routeRules: {
"/order-service/technician/details/**": { prerender: true },
},
});
10 replies
NNuxt
Created by charles1410 on 6/27/2024 in #❓・help
Help with nested and dynamic routes pages
i build with npx nuxi generate and deploy the .output in the server
10 replies
NNuxt
Created by charles1410 on 6/27/2024 in #❓・help
Help with nested and dynamic routes pages
no, how can i prerender routes? the showed route is dynamic in time because its open by a sent email (_techinicanId and _orderId)
10 replies
NNuxt
Created by charles1410 on 3/7/2024 in #❓・help
Help with proxy config in NUXT 3
its all works!!
11 replies
NNuxt
Created by charles1410 on 3/7/2024 in #❓・help
Help with proxy config in NUXT 3
thanks a lot, i watched the video and i followed the best way to set a proxy with runtimeconfig. thanks a lot for your help my friend!
11 replies
NNuxt
Created by charles1410 on 3/7/2024 in #❓・help
Help with proxy config in NUXT 3
thank you for respond master! i finally solve the issue here is the final solution: on nuxt.config.ts: nitro: { devProxy: { "/api/": "http://192.168.30.244:3000", // Proxy for API routes "/auth/": "http://192.168.30.244:3000", // Proxy for authentication routes }, }, on axios.ts config: const apiClient = axios.create({ baseURL: '/api/', // URL Api headers: { 'Content-Type': 'application/json', }, withCredentials: true, });
11 replies
NNuxt
Created by charles1410 on 3/7/2024 in #❓・help
Help with proxy config in NUXT 3
i tried, but the axios config doesnt change the url of proxy, only set the localhost and concatenate the prefix of proxy: localhost:3000/example, where example is the prefix. i dont understand why or where is the issue or bad config.
11 replies