diff --git a/.knosys/sites/default/package.json b/.knosys/sites/default/package.json index d770824ce..604445464 100644 --- a/.knosys/sites/default/package.json +++ b/.knosys/sites/default/package.json @@ -21,7 +21,6 @@ "dev": "next dev", "build": "next build", "start": "next start", - "lint": "next lint", - "gen": "next export" + "lint": "next lint" } } diff --git a/.knosys/sites/default/src/app/layout.tsx b/.knosys/sites/default/src/app/layout.tsx index 5dcf8b65c..9ae6139d4 100644 --- a/.knosys/sites/default/src/app/layout.tsx +++ b/.knosys/sites/default/src/app/layout.tsx @@ -1,5 +1,6 @@ import type { Metadata } from "next"; -import "./globals.css"; + +import "@/styles/globals.css"; export const metadata: Metadata = { title: 'OpenBuild Web3 前端训练营', diff --git a/.knosys/sites/default/src/app/page.tsx b/.knosys/sites/default/src/app/page.tsx index 01f97a19e..fa5f7ce7e 100644 --- a/.knosys/sites/default/src/app/page.tsx +++ b/.knosys/sites/default/src/app/page.tsx @@ -1,4 +1,5 @@ import Image from "next/image"; + import poster from './poster.jpg'; export default function Home() { diff --git a/.knosys/sites/default/src/app/globals.css b/.knosys/sites/default/src/shared/styles/globals.css similarity index 100% rename from .knosys/sites/default/src/app/globals.css rename to .knosys/sites/default/src/shared/styles/globals.css diff --git a/.knosys/sites/default/tsconfig.json b/.knosys/sites/default/tsconfig.json index 7b2858930..0590f281b 100644 --- a/.knosys/sites/default/tsconfig.json +++ b/.knosys/sites/default/tsconfig.json @@ -18,7 +18,7 @@ } ], "paths": { - "@/*": ["./src/*"] + "@/*": ["./src/shared/*"] } }, "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],