TOSIT-IO / tdp-ui

Graphical interface for tdp-server
Apache License 2.0
3 stars 2 forks source link

Remove the need for `config.js` on build #197

Open sergkudinov opened 1 year ago

sergkudinov commented 1 year ago

Release automation requires building application without pre-configuring config.json file, because it contains environment specific parameters.

Reproduce

git clone https://github.com/TOSIT-IO/tdp-ui
cd tdp-ui
npm i && npm run export

Error:

./src/features/config/configSlice.ts:2:24
Type error: Cannot find module '../../../config.json' or its corresponding type declarations.

Solution

I don't have a solution yet.

sergkudinov commented 1 year ago

After discussion with the team, it is not yet time to address this issue until the project matures.