File tree 3 files changed +6
-2
lines changed
3 files changed +6
-2
lines changed File renamed without changes.
Original file line number Diff line number Diff line change 1
1
import "~/styles/globals.css" ;
2
- import { basePath } from "../../next.config.mjs" ;
2
+ import nextConfig from "../../next.config.mjs" ;
3
+
4
+ const { basePath } = nextConfig ;
3
5
4
6
export default function RootLayout ( {
5
7
children,
Original file line number Diff line number Diff line change @@ -4,13 +4,15 @@ import { DiffEditor } from "@monaco-editor/react";
4
4
import hljs from "highlight.js" ;
5
5
import { useRef } from "react" ;
6
6
import { useLatest } from "@debbl/ahooks" ;
7
- import { basePath } from "../../next.config.mjs" ;
7
+ import nextConfig from "../../next.config.mjs" ;
8
8
import useMainStore from "~/store/useMainStore" ;
9
9
import Header from "~/components/Header" ;
10
10
import useTheme from "~/hooks/useTheme" ;
11
11
import useToast from "~/hooks/useToast" ;
12
12
import type { GetStoreState } from "~/types" ;
13
13
14
+ const { basePath } = nextConfig ;
15
+
14
16
const selector = ( s : GetStoreState < typeof useMainStore > ) =>
15
17
[
16
18
{
You can’t perform that action at this time.
0 commit comments