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 ( return (
<span className={``}></span> <span className={``}></span>
) )

View File

@ -1,5 +1,3 @@
import { useRef, useEffect, type ElementType } from "react";
import { Border } from "./Border";
import ExternalLinkIcon from "./ExternalLinkIcon"; import ExternalLinkIcon from "./ExternalLinkIcon";
export interface ListItemProps { 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 ( return (
<a href={url} target="_blank"> <a href={url} target="_blank">
{label} {label}
@ -34,7 +32,7 @@ function Divider() {
) )
} }
function Date({ date }) { function Date({ date }: any) {
if (!date) return null if (!date) return null
return <i className="font-muted" >{date}</i> return <i className="font-muted" >{date}</i>

View File

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

View File

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

View File

@ -5,8 +5,7 @@
"scripts": { "scripts": {
"dev": "rm -rf graph-data.json && next dev ", "dev": "rm -rf graph-data.json && next dev ",
"build": "rm -rf graph-data.json && next build", "build": "rm -rf graph-data.json && next build",
"start": "next start", "start": "next start"
"export": "next export"
}, },
"dependencies": { "dependencies": {
"@emotion/cache": "latest", "@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 { export default function App({ Component, pageProps }: AppProps<HomeProps>): React.JSX.Element {
const _Component: any = Component
return ( return (
<Component {...pageProps} /> <_Component {...pageProps} />
); );
} }

View File

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