Skip to content
This repository has been archived by the owner on Sep 14, 2023. It is now read-only.

Commit

Permalink
docs: remove build tool integration documentation (#1138)
Browse files Browse the repository at this point in the history
Co-authored-by: Harry Solovay <[email protected]>
  • Loading branch information
ryanleecode and harrysolovay authored Jul 10, 2023
1 parent f96ad89 commit 9c5bb2c
Showing 1 changed file with 0 additions and 45 deletions.
45 changes: 0 additions & 45 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,51 +91,6 @@ capi sync deno

</details>

## Build Tool Integration

If you use a build tool such as Vite or Webpack during development, you'll need
to configure two environment variables.

<details>
<summary><code>vite.config.ts</code> example</summary>
<br>

```ts
import { defineConfig } from "vite"

export default defineConfig({
define: {
"process.env.CAPI_SERVER": process.env.CAPI_SERVER,
"process.env.CAPI_TARGET": process.env.CAPI_TARGET,
},
})
```

</details>

<details>
<summary><code>webpack.config.js</code> example</summary>
<br>

```ts
import webpack from "webpack"

export default {
plugins: [
new webpack.DefinePlugin({
process: {
env: {
CAPI_SERVER: JSON.stringify(process.env.CAPI_SERVER),
CAPI_TARGET: JSON.stringify(process.env.CAPI_TARGET),
},
},
}),
],
}
```

</details>

## At a Glance

Retrieve the first 10 entries from a storage map of Polkadot.
Expand Down

0 comments on commit 9c5bb2c

Please sign in to comment.