Replies: 1 comment
-
I solved this problem by useAsyncData + key( I changed to set path instead of url ). |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Our service is configured as follows.
We are using SSR.
During SSR, we fetch the necessary information from the API server (Rails).
If the URL (domain) of the API server from which data is fetched during SSR and the API server from which data is fetched on the client side are different, how should we configure it?
Currently, we have not made any special settings, so we are fetching data during SSR and then fetching it again on the client side(on browser).
Data fetch for SSR (blue arrow)
Data fetch from the client (red arrow)
Both are accesses to the same server, so there is no need to fetch from the client side, but
Since the domains are different, Nuxt does not recognize that the data has been fetched on the server, and the client side fetches the data again.
Beta Was this translation helpful? Give feedback.
All reactions