Skip to content

Server asset path mismatch after deployment #11646

@teemingc

Description

@teemingc

Describe the problem

After building, only adapter-node and adapter-netlify have the issue of server assets living at a different path other than the Vite resolved path /_app/immutable/assets/*.

Describe the proposed solution

It would be great if the build output automatically rewrites the server asset paths so we don't have to do this

// server assets live in `.netlify/server` when deployed to Netlify
const dir = dev ? cwd : path.join(cwd, '.netlify/server');

Alternatives considered

No response

Importance

nice to have

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions