Compare commits
1 Commits
fix/issue-
...
0da768f3a4
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0da768f3a4 |
@@ -8,7 +8,17 @@ const config = {
|
|||||||
preprocess: vitePreprocess(),
|
preprocess: vitePreprocess(),
|
||||||
kit: {
|
kit: {
|
||||||
adapter: adapter(),
|
adapter: adapter(),
|
||||||
prerender: { entries: ['/hilfe/transkription'] }
|
prerender: {
|
||||||
|
entries: ['/hilfe/transkription'],
|
||||||
|
// Disable crawl: by default SvelteKit follows nav links from
|
||||||
|
// prerendered pages and prerenders the targets too. The targets
|
||||||
|
// (/, /documents, /persons, …) throw redirect('/login') during
|
||||||
|
// the build (no auth cookie), so SvelteKit bakes a
|
||||||
|
// `<script>location.href='/login'</script>` HTML page and serves
|
||||||
|
// it before the runtime hooks ever run. Result: authenticated
|
||||||
|
// users with a valid cookie still get bounced. See #514.
|
||||||
|
crawl: false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user