From e4b9b500726d95c04148caf4cb1e27242b653d88 Mon Sep 17 00:00:00 2001 From: Alessandro Pignotti Date: Wed, 16 Oct 2024 11:16:31 +0200 Subject: [PATCH] Support a env variable to select which CX build to load --- vite.config.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vite.config.js b/vite.config.js index 3a69abb..ec21174 100644 --- a/vite.config.js +++ b/vite.config.js @@ -5,7 +5,8 @@ import { viteStaticCopy } from 'vite-plugin-static-copy'; export default defineConfig({ resolve: { alias: { - '/config_terminal': process.env.WEBVM_MODE == "github" ? 'config_github_terminal.js' : 'config_public_terminal.js' + '/config_terminal': process.env.WEBVM_MODE == "github" ? 'config_github_terminal.js' : 'config_public_terminal.js', + "@leaningtech/cheerpx": process.env.CX_URL ? process.env.CX_URL : "@leaningtech/cheerpx" } }, build: {