Skip to content
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

Define which ParseServerOptions apply to startup methods #8300

Open
3 tasks done
dblythy opened this issue Nov 9, 2022 · 3 comments
Open
3 tasks done

Define which ParseServerOptions apply to startup methods #8300

dblythy opened this issue Nov 9, 2022 · 3 comments
Labels
type:docs Only change in the docs or README

Comments

@dblythy
Copy link
Member

dblythy commented Nov 9, 2022

New Feature / Enhancement Checklist

Current Limitation

There are two different types of startup methods (considering const { Parse Server } = require('parse-server')):

  1. new ParseServer() This returns an express middleware to be passed to an express app, designed to be compatible with existing web servers
  2. ParseServer.start This creates a Parse Server instance with it's own new express app.

As such, certain Parse Server options (cluster, startLiveQueryServer) are only compatible with the 2nd startup method, as if a developer is looking to mount to an existing express app, they will have to configure the clustering of the process themselves.

Feature / Enhancement Description

This can create some confusion as it can be assumed all Parse Server options are relevant to new ParseServer()

Example Use Case

Alternatives / Workarounds

Leave as is

3rd Party References

Sidenote

new ParseServer() returns differently depending on whether it's imported from:

const ParseServer = require('ParseServer') // creates Parse Server instance

or

const { ParseServer } = require('ParseServer') // creates express middleware (used in example project)

Discussed here #8232 (comment)

@parse-github-assistant
Copy link

parse-github-assistant bot commented Nov 9, 2022

Thanks for opening this issue!

  • 🎉 We are excited about your ideas for improvement!

@mtrezza
Copy link
Member

mtrezza commented Nov 9, 2022

Is this purely a docs issue?

@dblythy
Copy link
Member Author

dblythy commented Nov 9, 2022

Yes, the ParseServerOptions specifically

@mtrezza mtrezza added the type:docs Only change in the docs or README label Nov 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:docs Only change in the docs or README
Projects
None yet
Development

No branches or pull requests

2 participants