Skip to content

adapter-static does not create the fallback file when prerender.enabled = false #4441

@dimfeld

Description

@dimfeld

Describe the bug

With config like this, the fallback file is not created:

 import adapter from '@sveltejs/adapter-static';

export default {
 adapter: adapter({
   fallback: 'index.html'
 }),
 prerender: {
   enabled: false,
 },
}

Reproduction

https://stackblitz.com/edit/sveltejs-kit-template-default-hhb1ve?file=package.json

Run npm run build and notice that build/index.html does not exist. I suspect this changed with the recent "prerender during build" PR. It was working with kit version 288 and adapter-static 28.

Logs

No response

System Info

kit 303, adapter-static 29

Severity

blocking an upgrade

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions