Skip to content

Commit

Permalink
Update - Gnosis docs : note about browser extension for handling CORS (
Browse files Browse the repository at this point in the history
…#2258)

* Update docs for gnosis/safe package for building within vue env

* Add clarity and remoinder for peerDeps

* Add cors blocking extension notes
  • Loading branch information
Adamj1232 authored Jul 15, 2024
1 parent 1392442 commit 1e9413f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
7 changes: 6 additions & 1 deletion docs/src/routes/docs/[...4]wallets/[...12]gnosis/+page.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,12 @@ Note: With the `safeTxGas` you will see additional value on the `gasLimit` displ

## Build Environments

For build env configurations and setups please see the Build Env section [here](/docs/modules/core#build-environments)
For build env configurations and setups please see the Build Env section [here](/docs/modules/core#build-environments).


## Local testing within the Safe app

Ensure the application is building and working properly within the browser and then add or enable your cors blocker extension or script of choice. An example is the `Allow CORS` browser extension.

## Vue Build Configuration

Expand Down
4 changes: 4 additions & 0 deletions packages/gnosis/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ let trans = await wallet.instance.txs.send({txs:[tx], params})
Note: With the `safeTxGas` you will see additional value on the `gasLimit` displayed in the Safe. Check [Safe docs](https://github.com/safe-global/safe-contracts/blob/a6504a9afdeac186a8cdb29ad68b189523c80eda/docs/safe_tx_gas.md) for full details on that computation.


## Local testing within the Safe app

Ensure the application is building and working properly within the browser and then add or enable your cors blocker extension or script of choice. An example is the `Allow CORS` browser extension.

## Vue Build Configuration

If using Vue be sure to include the necessary peerDeps in the `vite.config.ts` specifically within the `optimizeDeps.include` list and install the necessary peer deps `npm i @safe-global/safe-apps-provider @safe-global/safe-apps-sdk`.
Expand Down

0 comments on commit 1e9413f

Please sign in to comment.