fix: 2 missed process.env spots on frontend

This commit is contained in:
Tom Moor
2020-07-18 11:33:34 -07:00
parent 67981a351e
commit ec3adc6d1c
3 changed files with 6 additions and 3 deletions

View File

@ -2,12 +2,13 @@
import * as React from "react";
import styled from "styled-components";
import OutlineLogo from "./OutlineLogo";
import env from "env";
type Props = {
href?: string,
};
function Branding({ href = process.env.URL }: Props) {
function Branding({ href = env.URL }: Props) {
return (
<Link href={href}>
<OutlineLogo size={16} />&nbsp;Outline

View File

@ -65,7 +65,7 @@ class Login extends React.Component<Props, State> {
const header =
env.DEPLOYMENT === "hosted" &&
(config.hostname ? (
<Back href={process.env.URL}>
<Back href={env.URL}>
<BackIcon color="currentColor" /> Back to home
</Back>
) : (

View File

@ -46,7 +46,9 @@ class Tokens extends React.Component<Props> {
<HelpText>
You can create an unlimited amount of personal tokens to authenticate
with the API. For more details about the API take a look at the{" "}
<a href="/developers">developer documentation</a>.
<a href="https://www.getoutline.com/developers">
developer documentation
</a>.
</HelpText>
{hasApiKeys && (