From 369037e2691485743fb95159a340822f6fd2f7cd Mon Sep 17 00:00:00 2001 From: KernelDeimos Date: Tue, 2 Apr 2024 04:19:22 -0400 Subject: [PATCH] Fix incorrect asset urls --- .../backend/src/temp/puter_page_loader.js | 40 ++++++++++--------- 1 file changed, 22 insertions(+), 18 deletions(-) diff --git a/packages/backend/src/temp/puter_page_loader.js b/packages/backend/src/temp/puter_page_loader.js index fe1d05b2..da682c45 100644 --- a/packages/backend/src/temp/puter_page_loader.js +++ b/packages/backend/src/temp/puter_page_loader.js @@ -51,6 +51,10 @@ const generate_puter_page_html = ({ gui_origin: app_origin, }; + const asset_dir = env === 'dev' + ? '/src' : '/dist' ; + // const asset_dir = '/dist'; + return ` @@ -66,7 +70,7 @@ const generate_puter_page_html = ({ - + @@ -74,29 +78,29 @@ const generate_puter_page_html = ({ - + - - - - - - - - - - - - - - + + + + + + + + + + + + + + - + - + ${