This is reproduction repository. I can't get correct queries if I build with @sveltejs/adapter-static
.
npm init svelte@next sveltekit-static-query
cd sveltekit-static-query
pnpm i @sveltejs/adapter-static@next sirv-cli
# and edit src/routes/*.svelte files
# pnpm dev # -> WORKS FINE
# pnpm build && pnpm preview # -> WORKS FINE
pnpm build && pnpm start # -> Does not work properly
pnpm build && pnpm start
query
value (Does not work properly like fig2 below)fig1 | fig2 |
Other links are simple demos.