Skip to content

Setting setServerPassthroughCopyBehavior('passthrough') with Vite not working #126

@shoogstoel

Description

@shoogstoel

Operating system

Ubuntu

Eleventy

2.0.1

Describe the bug

When using setServerPassthroughCopyBehavior('passthrough'); in conjunction with '@11ty/eleventy-plugin-vite' results in the following error, when trying to run npx @11ty/eleventy --serve:

Init options have not yet been fetched in the setup callback. This probably means that `init()` has not yet been called.

Are there any known limitations when using Vite as middleware? Is there anything else I have to take care of when using passthrough?

Reproduction steps

No response

Expected behavior

No response

Reproduction URL

No response

Screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions