From de9b45d7c02c7c2b039a77cc291a6a7f441b5920 Mon Sep 17 00:00:00 2001 From: StoneyDSP Date: Wed, 16 Oct 2024 06:49:50 +0200 Subject: [PATCH] fixed build mode CI/CD Signed-off-by: StoneyDSP --- .env.production | 33 +++++++++++++++++++++++++++++++++ .github/workflows/node.yml | 3 +-- 2 files changed, 34 insertions(+), 2 deletions(-) create mode 100644 .env.production diff --git a/.env.production b/.env.production new file mode 100644 index 0000000..474968a --- /dev/null +++ b/.env.production @@ -0,0 +1,33 @@ +## NodeJS +NODE_ENV=production +# NODE_V8_COVERAGE=coverage +NODE_COMPILE_CACHE=.cache +# NODE_DISABLE_COMPILE_CACHE=1 +# NO_COLORS=0 +# NODE_DISABLE_COLORS=1 +# FORCE_COLOR=1 +# NODE_REPL_HISTORY=./repl_history +# NODE_NO_WARNINGS=0 +# NODE_PENDING_DEPRECATION=1 +## React +BUILD_DIR=dist +PUBLIC_URL=https://nathanjhood.github.io/ +HOST=nathanjhood.github.io +PORT=80 +HTTPS=true +WDS_SOCKET_HOST=window.location.hostname +WDS_SOCKET_PATH=/esbuild +WDS_SOCKET_PORT=window.location.port +FAST_REFRESH=false +VERBOSE=false +## Debug +# DEBUG= +# DEBUG_HIDE_DATE= +# DEBUG_COLORS= +# DEBUG_DEPTH= +# DEBUG_SHOW_HIDDEN= +# DEBUG= +# DEBUG_HIDE_DATE= +# DEBUG_COLORS= +# DEBUG_DEPTH= +# DEBUG_SHOW_HIDDEN= diff --git a/.github/workflows/node.yml b/.github/workflows/node.yml index 91b7bb0..4897587 100644 --- a/.github/workflows/node.yml +++ b/.github/workflows/node.yml @@ -45,8 +45,7 @@ jobs: shell: bash working-directory: ${{ github.workspace }} run: | - cp .env .env.local - cp .env.test .env.test.local + cp .env.template .env.local cp .env.development .env.development.local cp .env.production .env.production.local