diff --git a/functions/nehubaConfig/nehubaConfig.js b/functions/nehubaConfig/nehubaConfig.js index 3ea5fd16ed1f4bf654970b6f870649ad15a82267..cfb8a7416e054ae7013c688f57b2c3fb4d578554 100644 --- a/functions/nehubaConfig/nehubaConfig.js +++ b/functions/nehubaConfig/nehubaConfig.js @@ -1,5 +1,5 @@ const fs = require('fs') -const { reconfigureUrl } = require('../../deploy/util/reconfigPrecomputedServer') +const { reconfigureUrl } = require('./reconfigPrecomputedServer') exports.handler = (ev, ctx, cb) => { const { path, diff --git a/functions/templates/templates.js b/functions/templates/templates.js index eb2d7dc8879d2f29a646a57e4fbfe747039ba8d8..c6548d85315fcb37ee6e99b29b0c559dd42a7c02 100644 --- a/functions/templates/templates.js +++ b/functions/templates/templates.js @@ -13,11 +13,11 @@ exports.handler = (ev, ctx, cb) => { const templates = [ // 'infant', - 'templates/bigbrain', + // 'templates/bigbrain', 'templates/colin', 'templates/MNI152', - 'templates/waxholmRatV2_0', - 'templates/allenMouse' + // 'templates/waxholmRatV2_0', + // 'templates/allenMouse' ] const resp = templates diff --git a/netlify.toml b/netlify.toml index 83ee8dae139471f1001462547b0a7d746eb277cb..a13f3209ddc97124cb12ca7c9a811beaad48d3dd 100644 --- a/netlify.toml +++ b/netlify.toml @@ -2,6 +2,6 @@ [build] publish="dist/aot/" - command="cp -R src/res/ext functions/templates/json && cp -R src/res/ext functions/nehubaConfig/json && npm run build-aot" + command="cp deploy/util/* functions/nehubaConfig/ && cp -R src/res/ext functions/templates/json && cp -R src/res/ext functions/nehubaConfig/json && npm run build-aot" functions="functions" environment={ BACKEND_URL=".netlify/functions/" } \ No newline at end of file