Description
New Issue Checklist
- [ x] I am not disclosing a vulnerability.
- [ x] I am not just asking a question.
- [ x] I have searched through existing issues.
- [ x] I can reproduce the issue with the 4.5.0 (https://github.com/parse-community/parse-server/releases).
Issue Description
I am trying to serve static files via top level public_html
folder included along with my parse server, but my files are ignored.
Looking at the
andparse-server/src/Routers/PublicAPIRouter.js
Line 318 in 5d84085
public_html
static route is defined, the static files from public_html
dir should be available under http://server:1337/parse/apps/
URL.
Debugging this actually revealed that
actually expands thepublic_html
directory path to node_modules/parse-server/public_html
and therefore serves the files shipped with the current version of the parse-server, not my files shipped along.
The same problem applies with the views
directory.
Suggested Fix
Path to public_html
and views
should either be configurable the same way path the cloud code is using the cloud
option here:
parse-server/src/Options/index.js
Line 70 in 7f47b04
node_modules/parse-server/public_html
Looks like some work has already progressed along these lines to deprecate the use of public_html
and views
in favor of the new PagesRouter
so feel free to close this as will not fix. Filing for future developers that may be hit.
Environment
Server
- Parse Server version: 4.5.0