Skip to content

Pages are rendered during build despite not setting prerender = true #1188

@stephane-vanraes

Description

@stephane-vanraes

I ran into a similar issue to #763 earlier today. While digging into (and with some help of @benmccann) I fixed it by adding prerender: { enabled: false } to the svelte.config.js.

This because in

enabled: expect_boolean(true),
it seems the prerendering is by default turned on.

Instead of necro'ing the previous issue (which as it described there is solved, so no point in reopening it) I made this issue in case there can be some discussion about whether this is the correct default. I am not entirely clear on what the benefit of prerendering is over not doing it, so I suppose that would be part of this decision.

Regardless of this, the default values for the config should be (better) documented somewhere, especially in this case where the documentation on prerendering makes it look as if this is something you have to explicitely turn on.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions