Skip to content

Commit

Permalink
move code back to where it was originally
Browse files Browse the repository at this point in the history
  • Loading branch information
benmccann committed Jul 20, 2022
1 parent 2798f9d commit e1d80c8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/kit/src/vite/preview/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,6 @@ export async function preview(vite, config, protocol) {
)
);

// prerendered dependencies
vite.middlewares.use(
scoped(base, mutable(join(config.kit.outDir, 'output/prerendered/dependencies')))
);

vite.middlewares.use((req, res, next) => {
const original_url = /** @type {string} */ (req.url);
const { pathname } = new URL(original_url, 'http://dummy');
Expand All @@ -80,6 +75,11 @@ export async function preview(vite, config, protocol) {
}
});

// prerendered dependencies
vite.middlewares.use(
scoped(base, mutable(join(config.kit.outDir, 'output/prerendered/dependencies')))
);

// prerendered pages (we can't just use sirv because we need to
// preserve the correct trailingSlash behaviour)
vite.middlewares.use(
Expand Down

0 comments on commit e1d80c8

Please sign in to comment.