From 576ecdced16cc51bd092e4c5747da303138116c3 Mon Sep 17 00:00:00 2001 From: ditoglez Date: Fri, 18 Oct 2024 12:45:23 +0300 Subject: [PATCH] docs: update sdk readme (#320) --- packages/idos-sdk-js/README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/idos-sdk-js/README.md b/packages/idos-sdk-js/README.md index 827d3d09e..37299baac 100644 --- a/packages/idos-sdk-js/README.md +++ b/packages/idos-sdk-js/README.md @@ -657,16 +657,17 @@ await idosGrantee.createBySignature({ ## Developing the SDK locally -Create an `.env.local` file in the root folder of the SDK package and add the needed environment variables (you can reference .env.production for the variable names). +Create an `.env.development.local` file in the root folder of the SDK package and add the needed environment variables (you can reference `.env` for the variable names). +The SDK will use these variables for the development environment. Run: ```bash pnpm dev ``` -This will run a dev server with watch mode that will rebuild every time any of the source files are changed. +This will run the compiler in watch mode that will rebuild every time any of the source files are changed. You can also create a production build by running the following command in the root folder of the SDK package: ```bash pnpm build ``` -This will create a PRODUCTION build of the SDK using the `.env.production` file. +This will create a PRODUCTION build of the SDK using the `.env` file.