Skip to content

sync-gateway accepts a filepath #354

Open
@kevinawoo

Description

@kevinawoo

Feature Request

I was looking through the sync-gateway's configuration and noticed that they support loading in a sync-function from a file, but it's not really documented.

It looks like it was introduced on 11/19/20 in couchbase/sync_gateway#4842

I'm not sure of their branching/releasing strategy, so I wasn't able to determine which version it was introduced in, but it is in master branch.

Description

We would be able to update the README.md to let users know that you can provide a file path or URL path.

Examples

Here's an partial example config that should work with that configuration once the correct version of the sync-gateway is determined.

{
	"databases": {
		"dbName": {
			"sync": "/path/to/sync-function.js"
		}
	}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    taskA job that won't introduce functional changes

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions