build: add release build script
This commit is contained in:
+2
-1
@@ -94,7 +94,8 @@
|
||||
"scripts": {
|
||||
"start": "REACT_APP_BUILD_TIME=$(date +%s) node scripts/start.js",
|
||||
"build": "rm -rf build && REACT_APP_BUILD_TIME=$(date +%s) GENERATE_SOURCEMAP=false node scripts/build.js",
|
||||
"deploy": "yarn build && gh-pages -d build",
|
||||
"build:release": "rm -rf build && REACT_APP_BUILD_TIME=$(date +%s) REACT_APP_RELEASE=true GENERATE_SOURCEMAP=false node scripts/build.js",
|
||||
"deploy:demo": "yarn build && gh-pages -d build",
|
||||
"lint": "lint-staged",
|
||||
"prepare": "husky install",
|
||||
"postinstall": "patch-package"
|
||||
|
||||
+4
-1
@@ -1,5 +1,8 @@
|
||||
// const BASE_URL = `${location.origin}/api`;
|
||||
const BASE_URL = `https://dev.voce.chat/api`;
|
||||
const BASE_URL = process.env.REACT_APP_RELEASE
|
||||
? `${location.origin}/api`
|
||||
: `https://dev.voce.chat/api`;
|
||||
// const BASE_URL = `https://dev.voce.chat/api`;
|
||||
export const CACHE_VERSION = `0.3.1`;
|
||||
export const ContentTypes = {
|
||||
text: "text/plain",
|
||||
|
||||
Reference in New Issue
Block a user