Skip to content

Commit

Permalink
Test env
Browse files Browse the repository at this point in the history
  • Loading branch information
anhnhu committed May 14, 2024
1 parent 9d57a40 commit b8cd4d5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/push-webapp-test-01.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 2 additions & 10 deletions packages/webapp/webpack.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit b8cd4d5

Please sign in to comment.