Allow changing the code at build time
This commit is contained in:
12
README.md
12
README.md
@@ -1,6 +1,6 @@
|
||||
# naive-keypad
|
||||
|
||||
# Build the browser application
|
||||
## Build the browser application
|
||||
|
||||
Ensure you have [Node.js](https://nodejs.org) installed. Then run:
|
||||
|
||||
@@ -8,3 +8,13 @@ Ensure you have [Node.js](https://nodejs.org) installed. Then run:
|
||||
npm install
|
||||
npm run build
|
||||
```
|
||||
|
||||
Copy the contents of the `dist` directory to your web server, and there you go!
|
||||
|
||||
## Changing the code
|
||||
|
||||
You may during the build process override the code of the keypad:
|
||||
|
||||
```sh
|
||||
VITE_KEYPAD_CODE=7894 npm run build
|
||||
```
|
||||
|
Reference in New Issue
Block a user