Migrate from LaunchDarkly
Start with one application and environment. Inventory the boolean flags it reads and keep their code defaults. Recreate the flag keys and target users in Dipswitch. This release supports an environment switch, individual overrides and static segments. Review percentage rules, prerequisites and multivariate flags separately during the move. The automatic importer is planned for a later release.
Web applications
Try the changes in staging with the same user IDs and check the flags for signed-in and anonymous visitors. In Vue, use the Dipswitch plugin and useFlag in place of the LaunchDarkly plugin and useLDFlag. Guarded routes should wait for flags and any user switch before deciding. Remove the old client after the transition is stable.
Node services
The shadow package runs both SDKs and keeps returning the LaunchDarkly result while recording differences. It uses the LaunchDarkly user key, including the user entry in a multi-context. Checks with no user key use Dipswitch's anonymous result.
npm install @dipswitch/sdk-node @dipswitch/sdk-node-launchdarkly
import { createClient } from '@dipswitch/sdk-node'
import { createFlagClient } from '@dipswitch/sdk-node-launchdarkly'
import type { LDClient } from '@launchdarkly/node-server-sdk'
export async function compare(launchDarkly: LDClient, serverKey: string) {
const dipswitch = createClient({ serverKey })
await dipswitch.ready
return { flags: createFlagClient({ launchDarkly, dipswitch }), dipswitch }
}
Compare real checks for at least a week without mismatches. Set returnFrom to dipswitch for one service at a time, and keep observing the comparisons until you are ready to remove the LaunchDarkly client. Close both SDKs when the service shuts down.