0

I'm starting to use Liferay in a project and just created a React Module that has to fetch some API content after being authorised.

I could just hardcode user and password inside the component it will just be visible for everyone that could examine the page. I then decided to install dotenv as a dependency of my module and then crate a .env file with some data to play with beforehand.

I can't make it to work. So, TL;DR: is it possible to access some .env file in a Liferay React Module?

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.