From 8127a481ca3f98a57a8c54400f7e317ac87bb702 Mon Sep 17 00:00:00 2001 From: Daniel Lockyer Date: Thu, 18 May 2023 15:14:36 +0200 Subject: [PATCH] Added `--lexical` support to `yarn dev` refs https://github.com/TryGhost/Team/issues/3240 - this adds support for `--lexical` to `yarn dev`, which sets the env variable so Ghost uses a local Lexical instance and not the CDN version --- .github/dev.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/dev.js b/.github/dev.js index e75c20f20b..fd510323ce 100644 --- a/.github/dev.js +++ b/.github/dev.js @@ -83,6 +83,10 @@ if (DASH_DASH_ARGS.includes('search') || DASH_DASH_ARGS.includes('all')) { COMMAND_GHOST.env['sodoSearch__styles'] = 'http://localhost:5370/umd/main.css'; } +if (DASH_DASH_ARGS.includes('lexical')) { + COMMAND_GHOST.env['editor__url'] = 'http://localhost:4173/koenig-lexical.umd.js'; +} + async function handleStripe() { if (DASH_DASH_ARGS.includes('stripe') || DASH_DASH_ARGS.includes('all')) { if (DASH_DASH_ARGS.includes('offline')) {