Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
eltigerchino committed Oct 25, 2024
1 parent 1e2f67b commit b22617e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/kit/src/exports/vite/preview/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,12 @@ export async function preview(vite, vite_config, svelte_config) {

const { pathname, search } = new URL(/** @type {string} */ (req.url), 'http://dummy');

let filename = normalizePath(join(svelte_config.kit.outDir, 'output/prerendered/pages' + pathname));
let filename = normalizePath(
join(svelte_config.kit.outDir, 'output/prerendered/pages' + pathname)
);

try {
filename = decodeURI(filename)
filename = decodeURI(filename);
} catch {
// malformed URI
}
Expand Down

0 comments on commit b22617e

Please sign in to comment.