最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

reactjs - Get env file values from a liferay's react module - Stack Overflow

programmeradmin0浏览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)

  1. 暂无评论