Skip to content

Commit

Permalink
chore: Wording
Browse files Browse the repository at this point in the history
  • Loading branch information
bennetrr committed Dec 22, 2024
1 parent 6670de1 commit b180ef3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,17 +124,17 @@ docker stop brickinv-dev-mariadb brickinv-dev-redis
docker rm -v brickinv-mariadb-dev brickinv-dev-redis
```

### Run development server with production API
### Run development server against development API

To configure the frontend, copy `src/frontend/public/env/env.template.js` to `src/frontend/public/env/env.prod.js` and
To configure the frontend, copy `src/frontend/public/env/env.template.js` to `src/frontend/public/env/env.dev.js` and
replace the empty strings with your own values.
The configuration fields are documented in the [Configuration](#frontend) section.

To start the frontend, run:

```bash
# working directory: src/frontend
pnpm dev:prod
pnpm dev:dev
```

## Production
Expand Down
2 changes: 1 addition & 1 deletion src/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"type": "module",
"scripts": {
"dev:local": "cp public/env/env.local.js public/env/env.js && vite",
"dev:prod": "cp public/env/env.prod.js public/env/env.js && vite",
"dev:dev": "cp public/env/env.dev.js public/env/env.js && vite",
"build": "tsc && vite build",
"lint": "eslint --report-unused-disable-directives --max-warnings 0 .",
"style": "prettier --check .",
Expand Down

0 comments on commit b180ef3

Please sign in to comment.