mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
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:
parent
408a13c937
commit
88b861d632
15 changed files with 119 additions and 21175 deletions
9
webclient/src/services/ServerProps.ts
Normal file
9
webclient/src/services/ServerProps.ts
Normal 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();
|
||||
|
|
@ -1,2 +1,3 @@
|
|||
export * from './CardImporterService';
|
||||
export * from './ServerProps';
|
||||
export * from './dexie';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue