@skgo/sveltekit-adapter 0.16.1 → 0.16.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/skgo-adapter.js +0 -12
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skgo/sveltekit-adapter",
3
- "version": "0.16.1",
3
+ "version": "0.16.2",
4
4
  "description": "SvelteKit adapter for skgo: builds a frontend that a Go binary renders and answers",
5
5
  "keywords": [
6
6
  "adapter",
package/skgo-adapter.js CHANGED
@@ -359,22 +359,10 @@ function readGenerated() {
359
359
  * tree off this list and issues the trailing-slash 308 off it, which is what
360
360
  * adapter-node does with the same array.
361
361
  *
362
- * A prerendered *redirect* is refused rather than dropped. Kit records one when
363
- * a page it rendered redirected somewhere, and skgo has nothing that would
364
- * replay it — an app that produced one would silently lose it.
365
- *
366
362
  * @param {import('@sveltejs/kit').Builder} builder
367
363
  * @returns {string[]}
368
364
  */
369
365
  function readPrerendered(builder) {
370
- if (builder.prerendered.redirects.size > 0) {
371
- throw new Error(
372
- 'skgo: the build prerendered a redirect, which skgo does not serve:\n' +
373
- [...builder.prerendered.redirects]
374
- .map(([from, { status, location }]) => ` ${from} -> ${status} ${location}`)
375
- .join('\n')
376
- );
377
- }
378
366
  return [...builder.prerendered.paths].sort();
379
367
  }
380
368