Skip to content

Commit

Permalink
chore: add graphql proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
icfor committed Feb 21, 2024
1 parent 6272efc commit e29e2e6
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: 18
- run: yarn --immutable --immutable-cache --check-cache
- run: echo Skipped
7 changes: 7 additions & 0 deletions apps/web-namada/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,11 @@ const getNextConfig = require('../../packages/shared-utils/configs/next');
const nextConfig = getNextConfig(JSON.parse(readFileSync('./package.json', 'utf8')).name);
nextConfig.i18n = i18n;

nextConfig.rewrites = async () => [
{
source: '/gql',
destination: 'http://154.91.1.75:8080/v1/graphql',
},
];

module.exports = nextConfig;
2 changes: 1 addition & 1 deletion apps/web-namada/src/chain.json
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@
}
},
"endpoints": {
"graphql": "https://gql.crescent.forbole.com/v1/graphql",
"graphql": "/namada/gql",
"graphqlWebsocket": "wss://gql.crescent.forbole.com/v1/graphql",
"publicRpcWebsocket": "wss://rpc.crescent.forbole.com/websocket"
},
Expand Down
2 changes: 0 additions & 2 deletions vercel-deploy.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,6 @@ if (process.argv[2] === 'manual') {
const { title } = JSON.parse(response);

project = projectList.find((p) => title.endsWith(`[${p}]`)) || 'web';

console.log('debug: vercel-deploy.js: project', project);
} else {
/* Getting the pull request title. */
const response = execShell(
Expand Down

0 comments on commit e29e2e6

Please sign in to comment.