mask some build errors and make some config changes

This commit is contained in:
Triston Armstrong 2024-01-07 01:50:56 -06:00
parent b413a4de81
commit 6cb1ad6279
7 changed files with 8 additions and 13 deletions

View File

@ -1,6 +1,5 @@
import type { HTMLAttributes } from "react";
export function Border({ className }: { className?: HTMLAttributes<HTMLDivElement>['className'] }) {
export function Border() {
return (
<span className={``}></span>
)

View File

@ -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 (
<a href={url} target="_blank">
{label}
@ -34,7 +32,7 @@ function Divider() {
)
}
function Date({ date }) {
function Date({ date }: any) {
if (!date) return null
return <i className="font-muted" >{date}</i>

View File

@ -1,3 +1,3 @@
[build]
command = "npm run build && npm run export"
command = "npm run build"
publish = "out"

View File

@ -1,4 +1,5 @@
export function webpack(config) {
config.resolve.fallback = { ...config.resolve.fallback, fs: false }
config.output = 'export'
return config
}

View File

@ -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",

View File

@ -7,7 +7,8 @@ import type React from "react";
export default function App({ Component, pageProps }: AppProps<HomeProps>): React.JSX.Element {
const _Component: any = Component
return (
<Component {...pageProps} />
<_Component {...pageProps} />
);
}

View File

@ -32,9 +32,6 @@
"esModuleInterop": true,
"resolveJsonModule": true,
"isolatedModules": true,
"paths": {
"@/*": [ /*put paths here*/]
}
},
"include": [
"next-env.d.ts",