diff --git a/components/Border.tsx b/components/Border.tsx index ec76af1..7c93ac5 100644 --- a/components/Border.tsx +++ b/components/Border.tsx @@ -1,6 +1,5 @@ -import type { HTMLAttributes } from "react"; -export function Border({ className }: { className?: HTMLAttributes['className'] }) { +export function Border() { return ( ) diff --git a/components/ListItem.tsx b/components/ListItem.tsx index 514ba35..6d68f56 100644 --- a/components/ListItem.tsx +++ b/components/ListItem.tsx @@ -1,5 +1,3 @@ -import { useRef, useEffect, type ElementType } from "react"; -import { Border } from "./Border"; import ExternalLinkIcon from "./ExternalLinkIcon"; export interface ListItemProps { @@ -19,7 +17,7 @@ export default function ListItem({ label, date, url }: ListItemProps) { ) } -function Link({ url, label }) { +function Link({ url, label }: any) { return ( {label} @@ -34,7 +32,7 @@ function Divider() { ) } -function Date({ date }) { +function Date({ date }: any) { if (!date) return null return {date} diff --git a/netlify.toml b/netlify.toml index 42560c2..92a06d2 100644 --- a/netlify.toml +++ b/netlify.toml @@ -1,3 +1,3 @@ [build] -command = "npm run build && npm run export" +command = "npm run build" publish = "out" diff --git a/next.config.js b/next.config.js index 900f350..c64844a 100644 --- a/next.config.js +++ b/next.config.js @@ -1,4 +1,5 @@ export function webpack(config) { config.resolve.fallback = { ...config.resolve.fallback, fs: false } + config.output = 'export' return config } diff --git a/package.json b/package.json index 651049f..b923b3b 100644 --- a/package.json +++ b/package.json @@ -5,8 +5,7 @@ "scripts": { "dev": "rm -rf graph-data.json && next dev ", "build": "rm -rf graph-data.json && next build", - "start": "next start", - "export": "next export" + "start": "next start" }, "dependencies": { "@emotion/cache": "latest", diff --git a/pages/_app.tsx b/pages/_app.tsx index 79ac448..09a10ac 100644 --- a/pages/_app.tsx +++ b/pages/_app.tsx @@ -7,7 +7,8 @@ import type React from "react"; export default function App({ Component, pageProps }: AppProps): React.JSX.Element { + const _Component: any = Component return ( - + <_Component {...pageProps} /> ); } diff --git a/tsconfig.json b/tsconfig.json index 77db40b..74b5662 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -32,9 +32,6 @@ "esModuleInterop": true, "resolveJsonModule": true, "isolatedModules": true, - "paths": { - "@/*": [ /*put paths here*/] - } }, "include": [ "next-env.d.ts",