Hi @Emun13, using
require in that context only works if the code is being run on a Node.js server. Since the tool’s
index.html actually gets rendered within the frontend of the app, it isn’t inside a Node.js environment.
Try putting this in a file called apiKey.js:
const apiKey = 'TEST_API_KEY';
You can then include this in your index.html and use it directly: