Closed lorvent closed 3 years ago
Hi, i don't know what exactly went wrong, but i run the same issue today. And I found fix for that. Just run:
yarn strapi install graphql
inside backend
folder and restart strapi server.
Hello, thanks for the fix, it works now. eventhough admin panel shows graphql is installed...i guess there is a glitch.
Also.... this setup always connects to strapi.... it doesn't generate static files but instead always connects to strapi server.... am i correct?
just like any typical DB based (php or wordpress) type of setup right?
thanks.
may be i missed somewhere but i thought this would export all data to markdown files into gridsome by parsing data using graphql.
another thing i found is... eventhough it is fetching data dynamically, whenever i add a new portfolio, i need to stop and start gridsome develop
each time.
another thing i found is... eventhough it is fetching data dynamically, whenever i add a new portfolio, i need to stop and start
gridsome develop
each time.
It's the way how gridsome works. It needs to have all data at build time. So it fetch data only once and then when you develop it rebuild only templates.
Also.... this setup always connects to strapi.... it doesn't generate static files but instead always connects to strapi server.... am i correct?
just like any typical DB based (php or wordpress) type of setup right?
Actually you can use it as static site. You just need to rebuild site every time you change data in Strapi. You can use webhook for that if you have CD which support that. For example with netlify build hook.
thanks, that clarifies.
Hello, when i try to open gridsome in brower, getting following error
can you tell me what went wrong?
thanks.