Skip to content

Throw an error (or warn?) if using adapter-static with invalid routes #4287

Closed
@Rich-Harris

Description

@Rich-Harris

Describe the problem

adapter-static is a source of confusion for people who believe that it allows you to somehow publish an app with dynamic server rendering and/or endpoints with POST/PATCH/DELETE/etc handlers to GitHub pages.

Describe the proposed solution

I haven't thought deeply about the implementation, beyond this:

  • If pages are left unprerendered, adapter-static should throw an error unless fallback was specified.
  • If an endpoint has non-GET handlers, adapter-static should throw an error regardless of whether fallback was specified.

Alternatives considered

More complete documentation, and spending more time dealing with issues

Importance

would make my life easier

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature / enhancementNew feature or requestp2-nice-to-haveSvelteKit cannot be used by a small number of people, quality of life improvements, etc.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions