disable srr svelteKit

The solution for “disable srr svelteKit” can be found here. The following code will assist you in solving the problem.

/** @type {import(‘@sveltejs/kit’).Handle} */
export async function handle({ event, resolve }) {
const response = await resolve(event, {
ssr: !event.url.pathname.startsWith(‘/admin’),
transformPage: ({ html }) => html.replace(‘old’, ‘new’)
});
 
return response;
}

Thank you for using DeclareCode; We hope you were able to resolve the issue.

More questions on [categories-list]

0
inline scripts encapsulated in