Skip to content

adapter-vercel doesn't redirect prerendered pages with incorrect trailing slash #8322

@KevsRepos

Description

@KevsRepos

Describe the bug

https://svelte.dev/blog/ loads without css, but https://svelte.dev/blog works fine. Same bug appears on all subroutes: https://svelte.dev/blog/whats-new-in-svelte-january-2023/ and so on...

Reproduction

I've just experienced it on the svelte.dev/blog site, but this looks like a kit specific error and not like a site specific error.

Logs

Loading module from “https://svelte.dev/blog/_app/immutable/start-e5c89509.js” was blocked because of a disallowed MIME type (“text/html”).

And the various css files couldnt load aswell.

System Info

System:
    OS: Linux 6.0 Pop!_OS 22.04 LTS
    CPU: (8) x64 Intel(R) Core(TM) i7-8565U CPU @ 1.80GHz
    Memory: 254.69 MB / 15.51 GB
    Container: Yes
    Shell: 5.1.16 - /bin/bash
  Binaries:
    Node: 17.2.0 - ~/.nvm/versions/node/v17.2.0/bin/node
    Yarn: 1.22.15 - ~/.nvm/versions/node/v17.2.0/bin/yarn
    npm: 8.1.4 - ~/.nvm/versions/node/v17.2.0/bin/npm
  Browsers:
    Firefox: 108.0

Severity

annoyance

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpkg:adapter-vercelPertaining to the Vercel adapter

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions