Skip to content

[Bug] Netlify/Vercel deploy crashes on directly going to any route other than / in SPA mode #303

@vanillacode314

Description

@vanillacode314

Error

TypeError: event.env.getStaticHTML is not a function
    at /var/task/netlify/functions/index.js:13920:30
    at /var/task/netlify/functions/index.js:14386:29
    at /var/task/netlify/functions/index.js:14141:18
    at /var/task/netlify/functions/index.js:14406:7
    at Runtime.handler (/var/task/netlify/functions/index.js:14417:24)
    at Runtime.handleOnceNonStreaming (file:///var/runtime/index.mjs:1028:29)

Route: https://solidjs--redditlattice.netlify.app/r/wallpapers
Source Code: https://github.com/vanillacode314/redditlattice/tree/solidjs

Repro: Just visit the route

Going to / and then going to any other route works but not when visiting the route directly

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcsrrelated to client render mode (ssr: false)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions