From 9c5bb2cca694969b846bd26391b96bce7d91fcff Mon Sep 17 00:00:00 2001 From: Ryan Lee Date: Mon, 10 Jul 2023 11:02:21 -0400 Subject: [PATCH] docs: remove build tool integration documentation (#1138) Co-authored-by: Harry Solovay --- Readme.md | 45 --------------------------------------------- 1 file changed, 45 deletions(-) diff --git a/Readme.md b/Readme.md index fb2d01b88..84258b5b2 100644 --- a/Readme.md +++ b/Readme.md @@ -91,51 +91,6 @@ capi sync deno -## Build Tool Integration - -If you use a build tool such as Vite or Webpack during development, you'll need -to configure two environment variables. - -
-vite.config.ts example -
- -```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, - }, -}) -``` - -
- -
-webpack.config.js example -
- -```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), - }, - }, - }), - ], -} -``` - -
- ## At a Glance Retrieve the first 10 entries from a storage map of Polkadot.