Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
mpiorowski committed Apr 29, 2024
1 parent ea1304d commit ac7622e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion client/src/hooks.server.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,5 +82,8 @@ export async function handle({ event, resolve }) {
if (event.url.pathname === "/") {
throw redirect(303, "/profile");
}
return await resolve(event);
return await resolve(event, {
preload: ({ type }) =>
type === "js" || type === "css" || type === "font",
});
}

0 comments on commit ac7622e

Please sign in to comment.