mask some build errors and make some config changes
This commit is contained in:
parent
b413a4de81
commit
6cb1ad6279
@ -1,6 +1,5 @@
|
||||
import type { HTMLAttributes } from "react";
|
||||
|
||||
export function Border({ className }: { className?: HTMLAttributes<HTMLDivElement>['className'] }) {
|
||||
export function Border() {
|
||||
return (
|
||||
<span className={``}></span>
|
||||
)
|
||||
|
@ -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>
|
||||
|
||||
|
@ -1,3 +1,3 @@
|
||||
[build]
|
||||
command = "npm run build && npm run export"
|
||||
command = "npm run build"
|
||||
publish = "out"
|
||||
|
@ -1,4 +1,5 @@
|
||||
export function webpack(config) {
|
||||
config.resolve.fallback = { ...config.resolve.fallback, fs: false }
|
||||
config.output = 'export'
|
||||
return config
|
||||
}
|
||||
|
@ -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",
|
||||
|
@ -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} />
|
||||
);
|
||||
}
|
||||
|
@ -32,9 +32,6 @@
|
||||
"esModuleInterop": true,
|
||||
"resolveJsonModule": true,
|
||||
"isolatedModules": true,
|
||||
"paths": {
|
||||
"@/*": [ /*put paths here*/]
|
||||
}
|
||||
},
|
||||
"include": [
|
||||
"next-env.d.ts",
|
||||
|
Loading…
Reference in New Issue
Block a user