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}