tjventurini
tjventurini
NNuxt
Created by Xulo on 5/22/2023 in #❓・help
SSR Issue: Empty Data on Page Reload with Nuxt 3 and Strapi useAsyncData
Just had a similar issue. In my case the problem was, that I was using docker and the nuxt container was not able to connect to the strapi container. Here is my nuxt config:
strapi: {
url: 'http://strapi:1337',
prefix: '/api',
version: 'v4',
},
runtimeConfig: {
public: {
strapi: {
url: process.env.STRAPI_URL,
},
},
},
strapi: {
url: 'http://strapi:1337',
prefix: '/api',
version: 'v4',
},
runtimeConfig: {
public: {
strapi: {
url: process.env.STRAPI_URL,
},
},
},
5 replies