Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Depends on whether or not the following is set:

    export const prerender = true;
If it is, it IS in fact compiled to HTML. :-) https://kit.svelte.dev/docs/page-options#prerender

Compilers are awesome.



This assumes you are using SvelteKit, not vanilla Svelte


    npm create svelte my-app
Creates a SvelteKit app now, not plain Svelte. That said, you can easily disable the server-side portion.

    export const ssr = false;




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: