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

docs: remove build tool integration documentation #1138

Merged
merged 3 commits into from
Jul 10, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 4 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 Expand Up @@ -189,6 +144,10 @@ might like to abstract; if you wish to add your use case to
[Capi's standard library](patterns), please
[submit an issue](https://github.com/paritytech/capi/issues/new?title=pattern%20idea:%20).

## Additional Resources

- [Build Tool Integration](https://docs.capi.dev/setup/build_tool_integration)

harrysolovay marked this conversation as resolved.
Show resolved Hide resolved
## Code of Conduct

Everyone interacting in this repo is expected to follow the
Expand Down