add js dev model

This commit is contained in:
2023-11-04 22:40:40 +09:00
parent 64851bd51d
commit 7966217ac2

View File

@@ -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}