diff --git a/README.md b/README.md index 09cc1abf..5e430509 100644 --- a/README.md +++ b/README.md @@ -21,20 +21,28 @@ Open up [http://127.0.0.1:8787](http://127.0.0.1:8787) and you should be ready t ## Deployment -First you will need to create the feedback queue: +1. Make sure you've installed `wrangler` and are logged in by running: ```sh -wrangler queues create orange-meets-feedback-queue +wrangler login ``` -Then you can run +2. Update the `account_id` and `CALLS_APP_ID` in `wrangler.toml` to use your own Cloudflare Account ID and Calls App ID + +3. You will also need to set the token as a secret by running: ```sh -npm run deploy +wrangler secret put CALLS_APP_SECRET ``` -You will also need to set the token as a secret by running: +4. Create the feedback queue: ```sh -wrangler secret put CALLS_APP_SECRET +wrangler queues create orange-meets-feedback-queue +``` + +5. Then you can run + +```sh +npm run deploy ``` diff --git a/app/types/Env.ts b/app/types/Env.ts index 41d3de9b..03c4a954 100644 --- a/app/types/Env.ts +++ b/app/types/Env.ts @@ -1,6 +1,5 @@ export type Env = { USER_DIRECTORY_URL?: string - ACCOUNT_ID: string FEEDBACK_URL?: string FEEDBACK_QUEUE?: Queue CALLS_APP_ID: string diff --git a/wrangler.toml b/wrangler.toml index 8a62a490..b510ab92 100644 --- a/wrangler.toml +++ b/wrangler.toml @@ -13,7 +13,6 @@ main = "./build/index.js" [vars] CALLS_APP_ID = "f0ea263009299383d09d44b9fad5316c" -ACCOUNT_ID = "8477399eb04accc1792af96aeaa25222" [[queues.producers]] queue = "orange-meets-feedback-queue"