remix icon indicating copy to clipboard operation
remix copied to clipboard

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

Open ezekeal opened this issue 1 year ago • 0 comments

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

ezekeal avatar Jul 15 '24 19:07 ezekeal