mirror of
https://github.com/dnote/dnote
synced 2026-03-14 22:45:50 +01:00
parent
3dff87e5a2
commit
8a30723b74
3 changed files with 5 additions and 2 deletions
|
|
@ -4,6 +4,7 @@ set -eux
|
|||
|
||||
basePath="$GOPATH/src/github.com/dnote/dnote"
|
||||
standalone=${STANDALONE:-false}
|
||||
isTest=${IS_TEST:-false}
|
||||
|
||||
rm -rf "$basePath/web/public"
|
||||
mkdir -p "$basePath/web/public/dist"
|
||||
|
|
@ -18,6 +19,7 @@ pushd "$basePath/web"
|
|||
--colors\
|
||||
--display-error-details\
|
||||
--env.standalone="$standalone"\
|
||||
--env.isTest="$isTest"\
|
||||
--config "$basePath"/web/webpack/prod.config.js
|
||||
|
||||
NODE_ENV=PRODUCTION \
|
||||
|
|
|
|||
|
|
@ -18,5 +18,6 @@ appPath="$basePath"/web
|
|||
|
||||
"$appPath"/node_modules/.bin/webpack-dev-server\
|
||||
--env.standalone="$STANDALONE"\
|
||||
--env.isTest="$IS_TEST"\
|
||||
--config "$appPath"/webpack/dev.config.js
|
||||
)
|
||||
|
|
|
|||
|
|
@ -48,9 +48,9 @@ module.exports = ({
|
|||
|
||||
let stripePublicKey;
|
||||
if (test) {
|
||||
stripePublicKey = 'pk_live_xvouPZFPDDBSIyMUSLZwkXfR';
|
||||
} else {
|
||||
stripePublicKey = 'pk_test_5926f65DQoIilZeNOiKydfoN';
|
||||
} else {
|
||||
stripePublicKey = 'pk_live_xvouPZFPDDBSIyMUSLZwkXfR';
|
||||
}
|
||||
|
||||
const compileTimeConstantForMinification = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue