From 291e5b0cc2d5f1c510775e8e17d6b78659e56f24 Mon Sep 17 00:00:00 2001 From: memdmp Date: Thu, 27 Feb 2025 16:51:14 +0100 Subject: feat: new canary, move to /~mem/ on estrogen.zone --- svelte.config.js | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) (limited to 'svelte.config.js') diff --git a/svelte.config.js b/svelte.config.js index d4f1eff..d57b4d7 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -6,17 +6,23 @@ import importMap from './import_map.json' with { type: 'json' }; const config = { preprocess: vitePreprocess(), kit: { + paths: { + base: '/~mem', + }, adapter: adapter({ fallback: '404.html', }), alias: Object.fromEntries( - Object.entries(importMap.imports).filter(([k]) => - k !== '$lib' && k !== '$lib/' - ).map(([k, v]) => - v.startsWith('npm:') - ? 'npm:' + k === v ? [] : [k, 'node_modules/' + v.substring(4)] - : [k, v] - ).filter((v) => v.length !== 0), + Object.entries(importMap.imports) + .filter(([k]) => k !== '$lib' && k !== '$lib/') + .map(([k, v]) => + v.startsWith('npm:') + ? 'npm:' + k === v + ? [] + : [k, 'node_modules/' + v.substring(4)] + : [k, v], + ) + .filter((v) => v.length !== 0), ), }, }; -- cgit v1.2.3