I'm facing an issue with my SvelteKit app deployed on Netlify that if I load the app and then leave the page inactive for several minutes, at some point it breaks, if I try to navigate or do stuff it gets stuck, and it seems like is not able to get the components, but at some point it eventually load, but it takes forever (like minutes). Screenshot attached is what I get after trying to navigate to a page by clicking on a button.
Here is the Sveltkit config:
import adapter from '@sveltejs/adapter-auto';
import preprocess from 'svelte-preprocess';
/** @type {import('@sveltejs/kit').Config} */
const config = {
// Consult https://github.com/sveltejs/svelte-preprocess
// for more information about preprocessors
preprocess: preprocess({
postcss: true
}),
kit: {
adapter: adapter(),
}
};
export default config;
Any clue?