Skip to content

Commit 3859212

Browse files
committed
update comment
1 parent 18a6806 commit 3859212

File tree

1 file changed

+2
-2
lines changed
  • packages/kit/src/exports/vite/preview

1 file changed

+2
-2
lines changed

packages/kit/src/exports/vite/preview/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ export async function preview(vite, vite_config, svelte_config) {
5454
// Remove the base middleware. It screws with the URL.
5555
// It also only lets through requests beginning with the base path, so that requests beginning
5656
// with the assets URL never reach us. We could serve assets separately before the base
57-
// middleware, but we'd need that to occur after the compression middleware, so would need to
58-
// insert it manually into the stack, which would be at least as bad as doing this.
57+
// middleware, but we'd need that to occur after the compression and cors middlewares, so would
58+
// need to insert it manually into the stack, which would be at least as bad as doing this.
5959
for (let i = vite.middlewares.stack.length - 1; i > 0; i--) {
6060
// @ts-expect-error using internals
6161
if (vite.middlewares.stack[i].handle.name === 'viteBaseMiddleware') {

0 commit comments

Comments
 (0)