mirror of
https://github.com/karl0ss/homepage.git
synced 2025-05-02 05:23:39 +01:00
19 lines
375 B
JavaScript
19 lines
375 B
JavaScript
![]() |
import { SWRConfig } from "swr";
|
||
|
import "styles/globals.css";
|
||
|
import "styles/weather-icons.css";
|
||
|
|
||
|
function MyApp({ Component, pageProps }) {
|
||
|
return (
|
||
|
<SWRConfig
|
||
|
value={{
|
||
|
fetcher: (resource, init) =>
|
||
|
fetch(resource, init).then((res) => res.json()),
|
||
|
}}
|
||
|
>
|
||
|
<Component {...pageProps} />
|
||
|
</SWRConfig>
|
||
|
);
|
||
|
}
|
||
|
|
||
|
export default MyApp;
|