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