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
{{ message }}
This repository has been archived by the owner on Jan 14, 2020. It is now read-only.
In short, ./static/foo.txt on your disk will be available at http://localhost:5000/_ream/static/foo.txt, and with option: rootStaticFiles: ['foo.txt'], it will be hoisted to http://localhost:5000/foo.txt
Instead of directly serving the whole static folder at
/:path*
:https://github.com/ream/ream/blob/d96bae0f853a37b1d2955994f9ce1c73da92b24a/packages/ream-core/lib/index.js#L157-L165
We should still copy
static
to output folder and add an optionrootStaticFiles
to serve files in output folder to root path, eg:/_ream/favicon.ico
will also be served as/favicon.ico
when you haverootStaticFiles: ['favicon.ico']
Furthur changes for folder serving strategy:
public
will be served through http server as/public
(not sure why we need this)static
will be copied todist/static
instead ofdist
, then you can access it via/_ream/static
dist/assets
instead ofdist/static
The text was updated successfully, but these errors were encountered: