@@ -300,6 +300,7 @@ router.all('*', async function(req, res, next) {
app_origin: APP_ORIGIN,
api_origin: API_ORIGIN,
+ use_bundled_gui: config.use_bundled_gui,
manifest,
gui_path: config.assets.gui,
@@ -25,6 +25,7 @@ const generate_puter_page_html = ({
gui_path,
+ use_bundled_gui,
app_origin,
api_origin,
@@ -113,6 +114,11 @@ const generate_puter_page_html = ({
<body>
<script>window.puter_gui_enabled = true;</script>
+ ${
+ use_bundled_gui
+ ? `<script>window.gui_env = 'prod';</script>`
+ : ''
+ }
${
((env == 'dev' && manifest?.lib_paths)
? manifest.lib_paths.map(path => `<script type="text/javascript" src="${path}"></script>\n`)