diff --git a/apps/beets-frontend-v3/.env.template b/apps/beets-frontend-v3/.env.template new file mode 100644 index 000000000..6e2fc4c37 --- /dev/null +++ b/apps/beets-frontend-v3/.env.template @@ -0,0 +1,16 @@ +NEXT_PUBLIC_APP_ENV=dev +NEXT_PUBLIC_BALANCER_API_URL=https://api-v3.balancer.fi/graphql +NEXT_PUBLIC_WALLET_CONNECT_ID=1b6b722470b504a53cf011e1e629a9eb + +# For wallet checks (optional) +PRIVATE_HYPERNATIVE_API_ID=xxx +PRIVATE_HYPERNATIVE_API_SECRET=xxx + +# For fiat currency conversions (optional) +PRIVATE_CURRENCYAPI_KEY=xxx + +# For integration tests and rpc proxy routes (optional) +NEXT_PRIVATE_DRPC_KEY=xxx + +# Allow skip transaction (optional) +NEXT_PUBLIC_ALLOW_SKIP_TRANSACTION=true diff --git a/apps/beets-frontend-v3/.env.test b/apps/beets-frontend-v3/.env.test new file mode 100644 index 000000000..e3ed2e3eb --- /dev/null +++ b/apps/beets-frontend-v3/.env.test @@ -0,0 +1,2 @@ +NEXT_PUBLIC_APP_ENV=test +NEXT_PUBLIC_BALANCER_API_URL=https://api-v3.balancer.fi/graphql diff --git a/apps/beets-frontend-v3/README.md b/apps/beets-frontend-v3/README.md index 11ad7b7d7..8e42b4d1d 100644 --- a/apps/beets-frontend-v3/README.md +++ b/apps/beets-frontend-v3/README.md @@ -8,18 +8,25 @@ https://pnpm.io/installation_ To setup the development environment, first clone the repo: ```bash -git clone https://github.com/balancer/frontend-v3.git && cd beets-frontend-v3 +git clone https://github.com/balancer/frontend-monorepo.git && cd frontend-monorepo/apps/beets-frontend-v3 ``` -Copy the `.env.example` file to `.env.local`: +Copy the `.env.template` file to `.env.local`: ```bash -cp .env.example .env.local +cp .env.template .env.local +``` + +Copy the `.env.local` file to `../../packages/lib`: + +```bash +cp .env.local ../../packages/lib ``` Next, install dependencies: ```bash +cd ../.. pnpm install ``` diff --git a/apps/frontend-v3/.env.template b/apps/frontend-v3/.env.template new file mode 100644 index 000000000..6e2fc4c37 --- /dev/null +++ b/apps/frontend-v3/.env.template @@ -0,0 +1,16 @@ +NEXT_PUBLIC_APP_ENV=dev +NEXT_PUBLIC_BALANCER_API_URL=https://api-v3.balancer.fi/graphql +NEXT_PUBLIC_WALLET_CONNECT_ID=1b6b722470b504a53cf011e1e629a9eb + +# For wallet checks (optional) +PRIVATE_HYPERNATIVE_API_ID=xxx +PRIVATE_HYPERNATIVE_API_SECRET=xxx + +# For fiat currency conversions (optional) +PRIVATE_CURRENCYAPI_KEY=xxx + +# For integration tests and rpc proxy routes (optional) +NEXT_PRIVATE_DRPC_KEY=xxx + +# Allow skip transaction (optional) +NEXT_PUBLIC_ALLOW_SKIP_TRANSACTION=true diff --git a/apps/frontend-v3/.env.test b/apps/frontend-v3/.env.test new file mode 100644 index 000000000..e3ed2e3eb --- /dev/null +++ b/apps/frontend-v3/.env.test @@ -0,0 +1,2 @@ +NEXT_PUBLIC_APP_ENV=test +NEXT_PUBLIC_BALANCER_API_URL=https://api-v3.balancer.fi/graphql diff --git a/apps/frontend-v3/README.md b/apps/frontend-v3/README.md index 0f59ee473..7fcba3ad0 100644 --- a/apps/frontend-v3/README.md +++ b/apps/frontend-v3/README.md @@ -8,18 +8,25 @@ https://pnpm.io/installation_ To setup the development environment, first clone the repo: ```bash -git clone https://github.com/balancer/frontend-v3.git && cd frontend-v3 +git clone https://github.com/balancer/frontend-monorepo.git && cd frontend-monorepo/apps/frontend-v3 ``` -Copy the `.env.example` file to `.env.local`: +Copy the `.env.template` file to `.env.local`: ```bash -cp .env.example .env.local +cp .env.template .env.local +``` + +Copy the `.env.local` file to `../../packages/lib`: + +```bash +cp .env.local ../../packages/lib ``` Next, install dependencies: ```bash +cd ../.. pnpm install ```