You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The CLI flag is assets, but defaults to /public. Those files are copied alongside static HTML files. Files like /public/style.css are then available at /style.css in the browser.
In this scenario, the dir would pry default to /assets and then be copied to /build/static/assets so browser path would be /assets/style.css.
This keeps functions, HTML, and static assets separate (might help with caching) and prevent collisions with Vercel (where a file named /public/index.js might be served as the homepage bc of their filesystem API).
The text was updated successfully, but these errors were encountered:
The CLI flag is
assets
, but defaults to/public
. Those files are copied alongside static HTML files. Files like/public/style.css
are then available at/style.css
in the browser.In this scenario, the dir would pry default to
/assets
and then be copied to/build/static/assets
so browser path would be/assets/style.css
.This keeps functions, HTML, and static assets separate (might help with caching) and prevent collisions with Vercel (where a file named
/public/index.js
might be served as the homepage bc of their filesystem API).The text was updated successfully, but these errors were encountered: