Skip to content

Commit e1d80c8

Browse files
committed
move code back to where it was originally
1 parent 2798f9d commit e1d80c8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,6 @@ export async function preview(vite, config, protocol) {
5959
)
6060
);
6161

62-
// prerendered dependencies
63-
vite.middlewares.use(
64-
scoped(base, mutable(join(config.kit.outDir, 'output/prerendered/dependencies')))
65-
);
66-
6762
vite.middlewares.use((req, res, next) => {
6863
const original_url = /** @type {string} */ (req.url);
6964
const { pathname } = new URL(original_url, 'http://dummy');
@@ -80,6 +75,11 @@ export async function preview(vite, config, protocol) {
8075
}
8176
});
8277

78+
// prerendered dependencies
79+
vite.middlewares.use(
80+
scoped(base, mutable(join(config.kit.outDir, 'output/prerendered/dependencies')))
81+
);
82+
8383
// prerendered pages (we can't just use sirv because we need to
8484
// preserve the correct trailingSlash behaviour)
8585
vite.middlewares.use(

0 commit comments

Comments
 (0)