From 5074ab39905ddb0354231529b722055949bdd08e Mon Sep 17 00:00:00 2001 From: Dominic Saadi Date: Fri, 8 Mar 2024 05:28:00 -0800 Subject: [PATCH] fix(setup realtime): remove "exp" from suggested setup command (#10151) This should just be `yarn rw setup server-file` instead of `yarn rw exp setup-server-file`. --- .changesets/10151.md | 3 +++ packages/cli/src/commands/experimental/util.js | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 .changesets/10151.md diff --git a/.changesets/10151.md b/.changesets/10151.md new file mode 100644 index 000000000000..1d77b7a38374 --- /dev/null +++ b/.changesets/10151.md @@ -0,0 +1,3 @@ +- fix(setup realtime): remove "exp" from suggested setup command (#10151) by @jtoar + +The realtime setup command was still suggesting running the experimental server file setup command if the server file wasn't setup. This fixes it so that it points users to the stable setup command, `yarn rw setup server-file`, instead. diff --git a/packages/cli/src/commands/experimental/util.js b/packages/cli/src/commands/experimental/util.js index 7e0e5b9ecc57..fd30e670851a 100644 --- a/packages/cli/src/commands/experimental/util.js +++ b/packages/cli/src/commands/experimental/util.js @@ -47,7 +47,7 @@ export const printTaskEpilogue = (command, description, topicId) => { export const isServerFileSetup = () => { if (!serverFileExists()) { throw new Error( - 'RedwoodJS Realtime requires a serverful environment. Please run `yarn rw exp setup-server-file` first.' + 'RedwoodJS Realtime requires a serverful environment. Please run `yarn rw setup server-file` first.' ) }