diff --git a/README.md b/README.md index ed2506a6..557b96ea 100644 --- a/README.md +++ b/README.md @@ -145,14 +145,14 @@ Let us assume the following domains for backend and frontend - Copy the GitHub OAuth app client ID from previous steps and set it in frontend [.env](packages/frontend/.env) file ```env - REACT_APP_GITHUB_CLIENT_ID = + VITE_GITHUB_CLIENT_ID = ``` - - Set `REACT_APP_GITHUB_PWA_TEMPLATE_REPO` and `REACT_APP_GITHUB_IMAGE_UPLOAD_PWA_TEMPLATE_REPO` in [.env](packages/frontend/.env) file + - Set `VITE_GITHUB_PWA_TEMPLATE_REPO` and `VITE_GITHUB_IMAGE_UPLOAD_PWA_TEMPLATE_REPO` in [.env](packages/frontend/.env) file ```env - REACT_APP_GITHUB_PWA_TEMPLATE_REPO = 'cerc-io/test-progressive-web-app' # Set actual owner/name of the template repo that will be used for creating new repo - REACT_APP_GITHUB_IMAGE_UPLOAD_PWA_TEMPLATE_REPO = 'cerc-io/image-upload-pwa-example' # Set actual owner/name of the template repo that will be used for creating new repo + VITE_GITHUB_PWA_TEMPLATE_REPO = 'cerc-io/test-progressive-web-app' # Set actual owner/name of the template repo that will be used for creating new repo + VITE_GITHUB_IMAGE_UPLOAD_PWA_TEMPLATE_REPO = 'cerc-io/image-upload-pwa-example' # Set actual owner/name of the template repo that will be used for creating new repo ``` - Production @@ -160,17 +160,17 @@ Let us assume the following domains for backend and frontend - Set the following values in [.env](packages/frontend/.env) file ```env - REACT_APP_SERVER_URL = 'https://api.snowballtools.com' # Backend server endpoint + VITE_SERVER_URL = 'https://api.snowballtools.com' # Backend server endpoint ``` - Sign in to [wallet connect](https://cloud.walletconnect.com/sign-in) to create a project ID - Create a project and add information to use wallet connect SDK - Add project name and select project type as `App` - Set project home page URL to `https://dashboard.snowballtools.com` - - On creation of project, use the `Project ID` and set it in `REACT_APP_WALLET_CONNECT_ID` in [.env](packages/frontend/.env) file + - On creation of project, use the `Project ID` and set it in `VITE_WALLET_CONNECT_ID` in [.env](packages/frontend/.env) file ```env - REACT_APP_WALLET_CONNECT_ID = + VITE_WALLET_CONNECT_ID = ``` - Build the React application @@ -190,17 +190,17 @@ Let us assume the following domains for backend and frontend - Copy the graphQL endpoint from terminal and add the endpoint in the [.env](packages/frontend/.env) file present in `packages/frontend` ```env - REACT_APP_SERVER_URL = 'http://localhost:8000' + VITE_SERVER_URL = 'http://localhost:8000' ``` - Sign in to [wallet connect](https://cloud.walletconnect.com/sign-in) to create a project ID. - Create a project and add information to use wallet connect SDK - Add project name and select project type as `App` - Project home page URL is not required to be set - - On creation of project, use the `Project ID` and set it in `REACT_APP_WALLET_CONNECT_ID` in [.env](packages/frontend/.env) file + - On creation of project, use the `Project ID` and set it in `VITE_WALLET_CONNECT_ID` in [.env](packages/frontend/.env) file ```env - REACT_APP_WALLET_CONNECT_ID = + VITE_WALLET_CONNECT_ID = ``` - The React application will be running in `http://localhost:3000/` diff --git a/build-webapp.sh b/build-webapp.sh index d350c0dc..d84fd6ba 100755 --- a/build-webapp.sh +++ b/build-webapp.sh @@ -10,11 +10,11 @@ if [[ -d "$DEST_DIR" ]]; then fi cat > $PKG_DIR/.env <