-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Closed
Labels
feature / enhancementNew feature or requestNew feature or request
Milestone
Description
People often ask for SPA mode. We could do the following:
// svelte.config.js
module.exports = {
adapter: '@sveltejs/adapter-node',
serverSideRendering: false
};
(serverSideRendering: false
might seem nonsensical in the context of adapter-node — why not just use adapter-static? — but we might still have dynamic endpoints, so it's something that should probably work with all adapters.)
Less commonly, people ask to disable client-side rendering (i.e. they just want SSR'd HTML, no interactivity) or at least client-side routing.
So we could have three new options that all default to true
:
serverSideRendering
clientSideRendering
clientSideRouting
At least one of serverSideRendering
or clientSideRendering
would have to be true, and clientSideRouting
couldn't be false if serverSideRendering
was false.
benmccann, lovasoa, monsendag, thecotne, ryanatkn and 22 more
Metadata
Metadata
Assignees
Labels
feature / enhancementNew feature or requestNew feature or request