Middleware configuration
The middleware is an Express.js server. The server connects the web app and PlentyONE system. To connect to a system, you have to provide the API endpoint. Additionally, you have add a security token for authentication.
INFO
In the local development environment, the app connects to the provided URL. In production, it connects to the system that hosts the app.
Environment file
Create a .env
file in the apps/web
directory.
Endpoint information
To access the environment information of your system, carry out the following steps:
- Log into your PlentyONE system.
- Go to Shop » Management.
- Copy (📋) the environment information to your clipboard.
- Paste the environment information into your
.env
file.
TIP
To view detailed environment information in PlentyONE, go to Shop » Management, open the further actions menu and click on ℹ️ View environment information.
For additional details, refer to the following guide: