From cbe41d09386bc922bae56f541a74c62de1fe50a5 Mon Sep 17 00:00:00 2001 From: Alec Chen <93971719+0xAlec@users.noreply.github.com> Date: Tue, 12 Nov 2024 14:01:02 +0700 Subject: [PATCH] Update README.md --- README.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index dc422ee..cd7f5af 100644 --- a/README.md +++ b/README.md @@ -67,9 +67,10 @@ Steps: - Under `Secrets` in `Workspace Features`, add the environment variables below. - Tip: You can click `Edit as JSON` and copy the values below in. - Click `Deploy` in the top right. - - Tip: Deploy your backend first, as you'll need the deployment URL for the frontend's `NEXT_PUBLIC_API_URL` environment variable. + - Tip: Deploy your backend first, as you'll need the deployment URL to set as `NEXT_PUBLIC_API_URL` in the frontend. + - Tip: You can click `Run` to test if the applications run properly before deploying. -**Backend** +**Backend Secrets** ``` { "CDP_API_KEY_NAME": "get this from https://portal.cdp.coinbase.com/projects/api-keys", @@ -81,12 +82,14 @@ Steps: **Important: Replit resets the SQLite template on every deployment, before sending funds to your agent or using it on Mainnet be sure to read [Agent Wallet](https://github.com/coinbase/onchain-agent-demo-backend?tab=readme-ov-file#agent-wallet) and save your wallet ID and seed in a safe place.** -**Frontend** +**Frontend Secrets** ``` { "NEXT_PUBLIC_API_URL": "your backend deployment URL here" } +Note: you'll need to include the scheme (`https://`) in `NEXT_PUBLIC_API_URL`. + ## License See [LICENSE.md](LICENSE.md) for details.