Skip to content

public assets are served from a different url on dev than in the build #9755

Open
@ezekeal

Description

@ezekeal

Reproduction

Reference a font file from tailwind.css
@font-face {
font-family: Font;
src: url("fonts/Font.otf") format("opentype");
}

run npm run dev

the font is avilable

npm run build && npm start

server is looking for /assets/

System Info

na

Used Package Manager

npm

Expected Behavior

User should be able to use the same url for public assets in local dev and when building in css files

Actual Behavior

Urls that work in css files locally are different when building

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