Skip to content

Sync 0.1.5: Connections reach sites with a custom URL prefix

Sync 0.1.5 lets connections work with sites that mount PhoenixKit under a URL prefix other than /phoenix_kit.

Every call to the other site, from registering a connection and checking its status to listing tables and pulling data, went to <site>/phoenix_kit/sync/api/..., whatever prefix that site used. A site mounted elsewhere answered 404, so connections to it could not be set up or used. Now the module uses this site’s own PhoenixKit URL prefix for the other site too, which is right when both are set up the same way.

Upgrading

If the other site uses a different prefix than yours, set it with config :phoenix_kit_sync, remote_url_prefix: "/custom". Use "" when it serves the sync API at the root.

 

 


Sync 0.1.5. Install or update: {:phoenix_kit_sync, "~> 0.1"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.