Skip to content

Commit

Permalink
Merge pull request #93 from Trendyol/92-test-baseurl-from-client
Browse files Browse the repository at this point in the history
  • Loading branch information
ddenizakpinar authored and k61b committed Jul 21, 2023
2 parents e25da79 + 759991d commit ce9b199
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions client/src/layouts/PageLayout/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,17 @@ import Header from "@components/layout/Header";
import Sidebar from "@components/layout/Sidebar";
import Head from "next/head";
import React, { FC } from "react";
import { useConfig } from "@contexts/ConfigContext";
import axios from "axios";

interface PageLayoutProps {
children: React.ReactNode;
}

const PageLayout: FC<PageLayoutProps> = (props) => {
const { children } = props;
const config = useConfig();
console.log('baseUrl', config?.baseUrl, axios?.defaults?.baseURL);

return (
<div className="min-w-full flex min-h-screen bg-background overflow-hidden bg-gray-50 isolate">
Expand Down

0 comments on commit ce9b199

Please sign in to comment.