diff --git a/.github/workflows/push-webapp-test-01.yml b/.github/workflows/push-webapp-test-01.yml index f55f48c248..72f1d0df92 100644 --- a/.github/workflows/push-webapp-test-01.yml +++ b/.github/workflows/push-webapp-test-01.yml @@ -37,7 +37,7 @@ jobs: if [ ${{ github.ref_name }} == 'telegram-wallet' ]; then yarn run webapp:change-build-number fi - yarn webapp:build --env GAME_API_HOST ${{ vars.API_DEV_SERVER_1 }} TELEGRAM_WEBAPP_LINK ${{ vars.TELEGRAM_WEBAPP_LINK_01 }} + yarn webapp:build - name: Publish to Cloudflare Pages id: cloudflare_deployment uses: cloudflare/pages-action@v1 diff --git a/packages/webapp/webpack.config.cjs b/packages/webapp/webpack.config.cjs index 0b04728189..e6737f0004 100644 --- a/packages/webapp/webpack.config.cjs +++ b/packages/webapp/webpack.config.cjs @@ -69,16 +69,8 @@ const _additionalEnv = { GAME_API_HOST: JSON.stringify(process.env.GAME_API_HOST), TELEGRAM_WEBAPP_LINK: JSON.stringify(process.env.TELEGRAM_WEBAPP_LINK) }; - -if (!_additionalEnv.GAME_API_HOST){ - _additionalEnv.GAME_API_HOST = JSON.stringify(apiGameHost); -} - -if (!_additionalEnv.TELEGRAM_WEBAPP_LINK){ - _additionalEnv.GAME_API_HOST = JSON.stringify(telegramLink); -} -console.log('GAME_API_HOST: ', apiGameHost); -console.log('TELEGRAM_WEBAPP_LINK: ', telegramLink); +console.log('GAME_API_HOST: ', _additionalEnv.GAME_API_HOST); +console.log('TELEGRAM_WEBAPP_LINK: ', _additionalEnv.TELEGRAM_WEBAPP_LINK); const createConfig = (entry, alias = {}, useSplitChunk = false) => { const result = { context: __dirname,