Skip to content

Prefix URLs with custom origin to serve assets from CDN #105

@mcferden

Description

@mcferden

In my production build I'd like to add CDN prefix to URLs generated by vite_asset, so that /static/assets/app-[hash].js will become https://cdn.example.com/static/assets/app-[hash].js.

I tried to play with static_url_prefix config variable, but it seems to break manifest resolution.

Is there some way to do this properly?

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