Skip to content

Commit 06d7962

Browse files
committed
fix: type module
1 parent cce51d7 commit 06d7962

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed
File renamed without changes.

src/app/layout.tsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import "~/styles/globals.css";
2-
import { basePath } from "../../next.config.mjs";
2+
import nextConfig from "../../next.config.mjs";
3+
4+
const { basePath } = nextConfig;
35

46
export default function RootLayout({
57
children,

src/app/page.tsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,15 @@ import { DiffEditor } from "@monaco-editor/react";
44
import hljs from "highlight.js";
55
import { useRef } from "react";
66
import { useLatest } from "@debbl/ahooks";
7-
import { basePath } from "../../next.config.mjs";
7+
import nextConfig from "../../next.config.mjs";
88
import useMainStore from "~/store/useMainStore";
99
import Header from "~/components/Header";
1010
import useTheme from "~/hooks/useTheme";
1111
import useToast from "~/hooks/useToast";
1212
import type { GetStoreState } from "~/types";
1313

14+
const { basePath } = nextConfig;
15+
1416
const selector = (s: GetStoreState<typeof useMainStore>) =>
1517
[
1618
{

0 commit comments

Comments
 (0)