diff --git a/.env.example b/.env.example index 7f4aabf01..6845d41d3 100644 --- a/.env.example +++ b/.env.example @@ -1,9 +1,9 @@ PUBLIC_URL=https://app.oraidex.io -REACT_APP_SITE_TITLE=OraiDEX -REACT_APP_SITE_DESC="OraiDEX is an IBC and CosmWasm-based decentralized exchange platform with multichain interoperability, optimal speed, and a lot of liquidity options for users." +VITE_APP_SITE_TITLE=OraiDEX +VITE_APP_SITE_DESC="OraiDEX is an IBC and CosmWasm-based decentralized exchange platform with multichain interoperability, optimal speed, and a lot of liquidity options for users." -REACT_APP_BASE_API_URL=https://api.oraidex.io +VITE_APP_BASE_API_URL=https://api.oraidex.io -REACT_APP_KADO_API_KEY=df0d2b3f-d829-4453-a4f6-1d6e8870e8f4 -REACT_APP_MIX_PANEL_ENVIRONMENT=acbafd21a85654933cbb0332c5a6f4f8 -REACT_APP_STRAPI_BASE_URL=https://nice-fireworks-d26703b63e.strapiapp.com \ No newline at end of file +VITE_APP_KADO_API_KEY=df0d2b3f-d829-4453-a4f6-1d6e8870e8f4 +VITE_APP_MIX_PANEL_ENVIRONMENT=acbafd21a85654933cbb0332c5a6f4f8 +VITE_APP_STRAPI_BASE_URL=https://nice-fireworks-d26703b63e.strapiapp.com \ No newline at end of file diff --git a/.github/workflows/legacy.yml b/.github/workflows/legacy.yml index ddd2f4649..e75966070 100644 --- a/.github/workflows/legacy.yml +++ b/.github/workflows/legacy.yml @@ -38,7 +38,7 @@ jobs: cp .env.example .env yarn build env: - REACT_APP_SENTRY_ENVIRONMENT: staging + VITE_APP_SENTRY_ENVIRONMENT: staging CI: false - name: Deploy to firebase run: yarn firebase deploy --only hosting:oraiswap-legacy --token ${{ secrets.FIREBASE_TOKEN }} -m '${{ github.event.head_commit.message }}' diff --git a/.github/workflows/mainnet.yml b/.github/workflows/mainnet.yml index eea624881..7cf18e582 100644 --- a/.github/workflows/mainnet.yml +++ b/.github/workflows/mainnet.yml @@ -61,7 +61,7 @@ jobs: run: yarn build env: SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} - REACT_APP_SENTRY_ENVIRONMENT: production + VITE_APP_SENTRY_ENVIRONMENT: production CI: false - name: Deploy to firebase run: yarn firebase deploy --only hosting:oraiswap --token ${{ secrets.FIREBASE_TOKEN }} diff --git a/.github/workflows/pre-mainnet.yml b/.github/workflows/pre-mainnet.yml index 2a5bac4e6..29c5a1c79 100644 --- a/.github/workflows/pre-mainnet.yml +++ b/.github/workflows/pre-mainnet.yml @@ -38,7 +38,7 @@ jobs: cp .env.example .env yarn build env: - REACT_APP_SENTRY_ENVIRONMENT: staging + VITE_APP_SENTRY_ENVIRONMENT: staging CI: false - name: Deploy to firebase run: yarn firebase deploy --only hosting:oraiswap-pre-mainnet --token ${{ secrets.FIREBASE_TOKEN }} -m '${{ github.event.head_commit.message }}' diff --git a/.github/workflows/staging-v2.yml b/.github/workflows/staging-v2.yml index 111e81369..f4d4851b3 100644 --- a/.github/workflows/staging-v2.yml +++ b/.github/workflows/staging-v2.yml @@ -38,7 +38,7 @@ jobs: cp .env.example .env yarn build env: - REACT_APP_SENTRY_ENVIRONMENT: staging + VITE_APP_SENTRY_ENVIRONMENT: staging CI: false - name: Deploy to firebase run: yarn firebase deploy --only hosting:oraiswap-staging-v1 --token ${{ secrets.FIREBASE_TOKEN }} -m '${{ github.event.head_commit.message }}' diff --git a/.github/workflows/staging.yml b/.github/workflows/staging.yml index dc1ed09fd..99111f808 100644 --- a/.github/workflows/staging.yml +++ b/.github/workflows/staging.yml @@ -39,7 +39,7 @@ jobs: rm -rf node_modules/.cache yarn build env: - REACT_APP_SENTRY_ENVIRONMENT: staging + VITE_APP_SENTRY_ENVIRONMENT: staging CI: false - name: Deploy to firebase run: yarn firebase deploy --only hosting:oraiswap-staging --token ${{ secrets.FIREBASE_TOKEN }} -m '${{ github.event.head_commit.message }}' diff --git a/.github/workflows/test-optimize-cicd.yml b/.github/workflows/test-optimize-cicd.yml index 8d568330d..425445ca7 100644 --- a/.github/workflows/test-optimize-cicd.yml +++ b/.github/workflows/test-optimize-cicd.yml @@ -57,5 +57,5 @@ jobs: run: yarn build env: SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} - REACT_APP_SENTRY_ENVIRONMENT: production + VITE_APP_SENTRY_ENVIRONMENT: production CI: false diff --git a/.gitignore b/.gitignore index e019a1c51..bdde6f93a 100644 --- a/.gitignore +++ b/.gitignore @@ -13,6 +13,7 @@ # vendor vendor +dist/ public/vendor.* # misc diff --git a/.husky/pre-push b/.husky/pre-push index 0d87e8f26..618c2bfbc 100755 --- a/.husky/pre-push +++ b/.husky/pre-push @@ -1,5 +1,4 @@ #!/usr/bin/env sh . "$(dirname -- "$0")/_/husky.sh" -yarn test:ci -yarn ts-check + diff --git a/codegen.ts b/codegen.ts index e5b83fef7..d5d56a8ea 100644 --- a/codegen.ts +++ b/codegen.ts @@ -1,7 +1,7 @@ import { CodegenConfig } from '@graphql-codegen/cli'; // https://subql-staging.orai.io/ -export const endpoint_gql = `https//staging-ammv3-indexer.oraidex.io/`; +export const endpoint_gql = `https//ammv3-indexer.oraidex.io/`; const config: CodegenConfig = { schema: endpoint_gql, documents: ['src/**/*.tsx'], diff --git a/public/index.html b/index.html similarity index 76% rename from public/index.html rename to index.html index b20667cea..e6b1cc0a6 100644 --- a/public/index.html +++ b/index.html @@ -2,7 +2,7 @@ - + - %REACT_APP_SITE_TITLE% + %VITE_APP_SITE_TITLE% + + + - + - - + + - - - + + +
- +