docker build -t dataspace-frontend-demo .docker run --env-file .env --name dataspace-frontend-demo -p 80:80 dataspace-frontend-demo
- Create
.env.developmentfile npm installnpm run dev
| ENV | Type | Default value | Required | Description |
|---|---|---|---|---|
VITE_IS_PROVIDER |
boolean | false |
⨉ | |
VITE_CONTROLPLANE_BASE_URL |
string | / | ✓ | Without '/' at the end |
VITE_CONTROLPLANE_MANAGEMENT_PATH |
string | / | ✓ | Without '/' at the end |
VITE_CONTROLPLANE_CATALOG_PATH |
string | / | ✓ | Without '/' at the end |
VITE_API_AUTH_HEADER |
string | x-api-key |
⨉ | |
VITE_API_AUTH_HEADER_VALUE |
string | / | ✓ |
When using ENV in Docker this is the ENV mapping: VITE_IS_PROVIDER -> FRONTEND_IS_PROVIDER (VITE is replaced with FRONTEND).
Example of Docker ENV: FRONTEND_IS_PROVIDER=true. There should be no whitespaces and no ".
For more information check .env files.