Skip to content

Commit

Permalink
fix: url name
Browse files Browse the repository at this point in the history
  • Loading branch information
gregfrasco committed Apr 5, 2023
1 parent a9f4dfd commit 3afcd6f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/client/src/context/settings.context.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ import { ThemeType } from '@theme/theme.provider';
export interface Settings {
theme: ThemeType;
lastProject?: string;
uri?: string;
VITE_AUTH_SERVICE?: string;
}

const defaultSettings: Settings = {
theme: 'light',
uri: import.meta.env.VITE_AUTH_SERVICE
VITE_AUTH_SERVICE: import.meta.env.VITE_AUTH_SERVICE
};

export interface SettingsContextProps {
Expand Down
4 changes: 2 additions & 2 deletions packages/client/src/graphql/graphql-provider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ export const GraphqlProvider: FC<GraphqlProviderProps> = ({ children }) => {
const [httpLink, setHttpLink] = React.useState<HttpLink>();

useEffect(() => {
if (settings?.uri) {
if (settings?.VITE_AUTH_SERVICE) {
setHttpLink(
new HttpLink({
uri: settings.uri,
uri: settings.VITE_AUTH_SERVICE,
fetch: fetch
})
);
Expand Down

0 comments on commit 3afcd6f

Please sign in to comment.