diff --git a/.proxyrc.js b/.proxyrc.js index 29fd08203c3bdc50a892531ddcae37078fd9732a..0a15292e7532ffb693160d8293f77c9ef29bd528 100644 --- a/.proxyrc.js +++ b/.proxyrc.js @@ -1,9 +1,11 @@ const process = require('process') const serveStatic = require("serve-static") module.exports = function (app) { + console.error(('proxy config')) if (!('BUILD_PREFIX' in process.env)) { throw new Error(`Dunno where the chardata at, what BUILD_PREFIX?`) } - const dir = `./${process.env.BUILD_PREFIX}hanzi-data` + const dir = `${process.env.BUILD_PREFIX}hanzi-data` app.use("/hanzi-data", serveStatic(dir)) + console.error(('ok configured at '), dir) }