#Build fully static Site

4 messages · Page 1 of 1 (latest)

bright shell
#

I have pages with data I pull from a headless cms, how can I generate a fully static site, that fetches the data when building so that I dont have any api-requests anymore in the build-version? is that possible? I am pulling the data in via useFetch.

hidden zenith
bright shell
#

thanks for your reply, unfortunately that does not work, I would expect the api-requests in my code to being execute when I run next generate so my html-files end up with the content of the api-requests, but thats not the case, the api-requests are untouched

hidden zenith