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

Create PouchDB design document on startup #68

Open
petteripitkanen opened this issue Aug 10, 2019 · 1 comment
Open

Create PouchDB design document on startup #68

petteripitkanen opened this issue Aug 10, 2019 · 1 comment
Labels

Comments

@petteripitkanen
Copy link
Collaborator

Currently the PouchDB design document with the validate_doc_update function is created during npm run migrate with an HTTP call. It would be more robust to also check that the design document exists and is up-to-date on startup, and since it is a normal document to create it with the PouchDB methods instead of HTTP. See pouchdb-design.

@petteripitkanen
Copy link
Collaborator Author

Also, currently the design document is replicated to clients, this should be prevented probably.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant