powerplant icon indicating copy to clipboard operation
powerplant copied to clipboard

Create PouchDB design document on startup

Open petteripitkanen opened this issue 5 years ago • 1 comments

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 avatar Aug 10 '19 09:08 petteripitkanen

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

petteripitkanen avatar Aug 17 '19 13:08 petteripitkanen