BlueStone
BlueStone
NNuxt
Created by BlueStone on 9/10/2024 in #❓・help
use SSR with backend server?
solved
8 replies
NNuxt
Created by BlueStone on 9/10/2024 in #❓・help
use SSR with backend server?
I want to set the api url to /api/xxxxx so I can use nginx to reverse proxy on servers, but this causes SSR and dev failure
8 replies
NNuxt
Created by BlueStone on 9/10/2024 in #❓・help
use SSR with backend server?
@joe_black_unluckyhi, a few questions here. as the doc said, im using useFetch to fetch data from the server. I configured vite proxy and it is ignored, so I have to specify full url such as localhost:8080/api/xxx, and if I refresh the data on clients I think that will be broken. what should i do?
8 replies
NNuxt
Created by BlueStone on 9/10/2024 in #❓・help
use SSR with backend server?
I found it out
8 replies
NNuxt
Created by BlueStone on 9/10/2024 in #❓・help
use SSR with backend server?
thanks so much, how to specify type on $fetch
8 replies
NNuxt
Created by BlueStone on 9/10/2024 in #❓・help
use SSR with backend server?
Also, can i only render it on server side, so on the client side i don't have to request the backed api?
8 replies