From 7966217ac2706b9d50e779a13f716fa0b8b1a88d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=96=B9=20=E6=9F=8F?= Date: Sat, 4 Nov 2023 22:40:40 +0900 Subject: [PATCH] add js dev model --- backend/app/api/api_v1/routers/kintone.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/backend/app/api/api_v1/routers/kintone.py b/backend/app/api/api_v1/routers/kintone.py index 513928b..3bf3bec 100644 --- a/backend/app/api/api_v1/routers/kintone.py +++ b/backend/app/api/api_v1/routers/kintone.py @@ -241,7 +241,10 @@ def updateappjscss(app,uploads,c:config.KINTONE_ENV): for upload in uploads: for key in upload: if key.endswith('.js'): - dsjs.append({'type':'FILE','file':{'fileKey':upload[key]}}) + if (key.endswith('alc_runtime.js') and config.DEPLOY_MODE == "DEV"): + dsjs.append({'type':'URL','url':config.DEPLOY_JS_URL}) + else: + dsjs.append({'type':'FILE','file':{'fileKey':upload[key]}}) elif key.endswith('.css'): dscss.append({'type':'FILE','file':{'fileKey':upload[key]}}) ds ={'js':dsjs,'css':dscss}