Я хотел бы использовать sapper как ssg. Когда я получаю такие данные:
<script context="module">
export function preload({ params, query }) {
return this.fetch(`https://jsonplaceholder.typicode.com/posts`)
.then(r => r.json())
.then(posts => {
return {posts}
})
}
I can export the site to static. But on links the data still gets fetched from jsonplaceholder. Only on reload the data gets from the static folder. How to get all fetched data static?