Skip to content
Snippets Groups Projects
Commit 8b65c19b authored by Xiao Gui's avatar Xiao Gui
Browse files

fix netlify fn

parent 09aee1c9
No related branches found
No related tags found
No related merge requests found
const fs = require('fs')
const { reconfigureUrl } = require('../../deploy/util/reconfigPrecomputedServer')
const { reconfigureUrl } = require('./reconfigPrecomputedServer')
exports.handler = (ev, ctx, cb) => {
const {
path,
......
......@@ -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
......
......@@ -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
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment