-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
parse-server ignoring my public_html folder for static files, serves files shipped with parse-server #7204
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thanks for reporting. This is expected - although not optimal - behavior when running Parse Server as a module. Feel free to provide a PR to fix this, ideally via a path parameter in the Parse Server options. Alternatively feel free to enable the |
I have classified this as bug with severity S3:
|
Thank @mtrezza for classifying this. I will very probably go with the |
Sure, please provide any feedback including possible optimizations for the PagesRouter. The PagesRouter is currently in the docs under "Localization", that being its major feature, but it has other, localization-unrelated improvements as you can find in the related PR. |
I am closing this as |
New Issue Checklist
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
parse-server/src/Routers/PublicAPIRouter.js
Line 9 in 5d84085
parse-server/src/Routers/PublicAPIRouter.js
Line 318 in 5d84085
public_html
static route is defined, the static files frompublic_html
dir should be available underhttp://server:1337/parse/apps/
URL.Debugging this actually revealed that
parse-server/src/Routers/PublicAPIRouter.js
Line 9 in 5d84085
public_html
directory path tonode_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
andviews
should either be configurable the same way path the cloud code is using thecloud
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
andviews
in favor of the newPagesRouter
so feel free to close this as will not fix. Filing for future developers that may be hit.Environment
Server
The text was updated successfully, but these errors were encountered: