Webatrice: improve prebuild steps and add .env configs (#4564)

* create .env file for server configuration

* render client version

* automate env file

* add prestart command

* create server-props.json instead of using .env

* automate master proto file

Co-authored-by: Jeremy Letto <jeremy.letto@datasite.com>
This commit is contained in:
Jeremy Letto 2022-02-12 17:58:47 -06:00 committed by GitHub
parent 408a13c937
commit 88b861d632
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 119 additions and 21175 deletions

View file

@ -0,0 +1,9 @@
import props from '../server-props.json';
class ServerProps {
get REACT_APP_VERSION() {
return props?.REACT_APP_VERSION;
}
}
export const serverProps = new ServerProps();

View file

@ -1,2 +1,3 @@
export * from './CardImporterService';
export * from './ServerProps';
export * from './dexie';