对于我正在构建的静态站点,默认的sapper导出命令有效,但是在特定情况下,它缺少一些页面。
在路线预载https://github.com/Paulmicha/research-journal/blob/master/src/routes/%5B...slug%5D.svelte中,我使用:
await this.fetch(`/data/entities/content/page/${slug.join('/')}.json`);
然后允许从静态JSON文件生成所有URL。
尝试失败:https://github.com/Paulmicha/research-journal/blob/master/scripts/sapper_export.js
任何指针吗?