Monorepo for wisp.place. A static site hosting service built on top of the AT Protocol. wisp.place

docs: sveltekit defaults makes wisp blob reuse ineffective #37

Open opened by maxine.puppykitty.racing

sveltekit by default includes a unique "version hash" which changes the hash of the main svelte bundle and any other bundles that depend on it. this makes wisp's blob reuse useless as it has to upload all the javascript chunks again. it's worth documenting along with the workaround of setting the version to a fixed string in svelte.config.js:

/** @satisfies {import('@sveltejs/kit').Config} */
const config = {
    kit: {
        version: {
            name: 'meow'
        }
    }
};

export default config;

this is not important for most people as there won't be too many chunks in their website but in the case of https://paste.wisp.place i cannot update my site more than 5 times per hour without it

Sign up or Sign in to add to the discussion.