From 5a404f0586ee3197a51c9392ab9f96ed2b7e1b92 Mon Sep 17 00:00:00 2001
From: Philipp Stadler <a51820432@unet.univie.ac.at>
Date: Mon, 15 Jul 2024 09:25:44 +0200
Subject: [PATCH] chore: allow absolute prefix in parcel

---
 .proxyrc.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/.proxyrc.js b/.proxyrc.js
index 29fd082..0a15292 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)
 }
-- 
GitLab