diff --git a/backend/utils/tw/set_config.go b/backend/utils/tw/set_config.go
index 5b9926db..275c51fc 100644
--- a/backend/utils/tw/set_config.go
+++ b/backend/utils/tw/set_config.go
@@ -9,7 +9,7 @@ import (
func SetTaskwarriorConfig(tempDir, encryptionSecret, origin, UUID string) error {
configCmds := [][]string{
{"task", "config", "sync.encryption_secret", encryptionSecret, "rc.confirmation=off"},
- {"task", "config", "sync.server.origin", origin, "rc.confirmation=off"},
+ {"task", "config", "sync.server.url", origin, "rc.confirmation=off"},
{"task", "config", "sync.server.client_id", UUID, "rc.confirmation=off"},
}
diff --git a/frontend/src/components/HomeComponents/SetupGuide/SetupGuide.tsx b/frontend/src/components/HomeComponents/SetupGuide/SetupGuide.tsx
index 25fb8a37..f0a49973 100644
--- a/frontend/src/components/HomeComponents/SetupGuide/SetupGuide.tsx
+++ b/frontend/src/components/HomeComponents/SetupGuide/SetupGuide.tsx
@@ -74,9 +74,13 @@ export const SetupGuide = (props: Props) => {
commands one block at a time
+
+ (Note: sync.server.origin is deprecated but
+ synonymous with sync.server.url)
+
{
).toBeInTheDocument();
expect(
- screen.getByText('task config sync.server.origin https://test-container')
+ screen.getByText('task config sync.server.url https://test-container')
).toBeInTheDocument();
});
diff --git a/frontend/src/components/HomeComponents/SetupGuide/__tests__/utils.test.ts b/frontend/src/components/HomeComponents/SetupGuide/__tests__/utils.test.ts
index f59241eb..21bf4a50 100644
--- a/frontend/src/components/HomeComponents/SetupGuide/__tests__/utils.test.ts
+++ b/frontend/src/components/HomeComponents/SetupGuide/__tests__/utils.test.ts
@@ -19,7 +19,7 @@ describe('exportConfigSetup', () => {
);
expect(result).toContain(
- `task config sync.server.origin ${url.containerOrigin}`
+ `task config sync.server.url ${url.containerOrigin}`
);
expect(result).toContain(`task config sync.server.client_id ${props.uuid}`);
diff --git a/frontend/src/components/HomeComponents/SetupGuide/utils.ts b/frontend/src/components/HomeComponents/SetupGuide/utils.ts
index d53cdb60..ce2fab46 100644
--- a/frontend/src/components/HomeComponents/SetupGuide/utils.ts
+++ b/frontend/src/components/HomeComponents/SetupGuide/utils.ts
@@ -5,7 +5,8 @@ export function exportConfigSetup(props: Props): string {
return [
'Configure Taskwarrior with these commands, run these commands one block at a time',
`task config sync.encryption_secret ${props.encryption_secret}`,
- `task config sync.server.origin ${url.containerOrigin}`,
+ `task config sync.server.url ${url.containerOrigin}`,
+ '(Note: sync.server.origin is deprecated but synonymous with sync.server.url)',
`task config sync.server.client_id ${props.uuid}`,
'For more information about how this works, refer to the task-sync(5) manpage for details on how to configure the new sync implementation.',
].join('\n');