8000 Parameterize URLs in API, update config, remove not needed standalone… by Goncharo · Pull Request #7 · metriport/metriport · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Parameterize URLs in API, update config, remove not needed standalone… #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Dec 26, 2022

Conversation

Goncharo
Copy link
Member

… env #55

@Goncharo Goncharo requested a review from Orta21 December 24, 2022 00:38
README.md Outdated
### **Environment Setup**

First, you'll need to create and configure a deployment config file: `/infra/config/standalone.ts`. You can see `example.ts` in the same directory for a sample of what the end result should look like. Then, proceed with the deployment steps below.
1. You'll need to create and configure a deployment config file: `/infra/config/prod.ts`. You can see `example.ts` in the same directory for a sample of what the end result should look like. Optionally, you can setup consig files for `staging` and `sandbox` deployments. Then, proceed with the deployment steps below.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo (consig > config) + suggestion for this:

Optionally, you can setup consig files for staging and sandbox deployments.

Optionally, you can setup config files for stagingandsandbox deployments, based on your environment needs.

Comment on lines +24 to +25
static getConnectWidgetUrl(): string {
return getEnvVarOrFail("CONNECT_WIDGET_URL");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤩

@@ -2,14 +2,21 @@ import { getApiToken } from "./api";
import { NavigateFunction } from "react-router-dom";
import Constants from "./constants";

function buildEnvParam(envParam: string) {
return `&${envParam}=true`;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe leave & out of this function? this way, if needed, we can position the result of this as the first param

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point!

@@ -32,5 +32,6 @@ export interface EnvConfig {
host: string;
domain: string;
};
connectWidgetUrl?: string;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could do some tweaking on the type definition so one of these is present: connectWidget or connectWidgetUrl

@Goncharo Goncharo merged commit 7cd837a into develop Dec 26, 2022
@Goncharo Goncharo deleted the 55-infra-staging-2 branch December 26, 2022 16:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0