chore: update configuration for output and distribution

This commit is contained in:
2024-12-17 15:28:45 +08:00
parent f636811621
commit c5358024a0
9 changed files with 23 additions and 7 deletions
+3 -3
View File
@@ -1,18 +1,18 @@
export const websites = [
{
icon: "./gitea.svg",
icon: "./img/gitea.svg",
title: "Gitea",
description: "实验室 Git 服务。",
link: "https://git.intcplab.cn",
},
{
icon: "./bbs.svg",
icon: "./img/bbs.svg",
title: "实验室论坛",
description: "只是一个假的论坛。",
link: "https://website2.example.com",
},
{
icon: "./unknow.svg",
icon: "./img/unknow.svg",
title: "挑战赛排行榜",
description: "机器学习课程配套挑战赛排行榜。",
link: "https://rank.intcplab.cn",
+2
View File
@@ -2,6 +2,8 @@ import type { NextConfig } from "next";
const nextConfig: NextConfig = {
/* config options here */
output: "export",
distDir: "out",
};
export default nextConfig;

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

Before

Width:  |  Height:  |  Size: 576 B

After

Width:  |  Height:  |  Size: 576 B

Before

Width:  |  Height:  |  Size: 508 B

After

Width:  |  Height:  |  Size: 508 B

View File

Before

Width:  |  Height:  |  Size: 631 B

After

Width:  |  Height:  |  Size: 631 B

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

+18 -4
View File
@@ -1,7 +1,11 @@
{
"compilerOptions": {
"target": "ES2017",
"lib": ["dom", "dom.iterable", "esnext"],
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true,
"skipLibCheck": true,
"strict": true,
@@ -19,9 +23,19 @@
}
],
"paths": {
"@/*": ["./*"]
"@/*": [
"./*"
]
}
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
"exclude": ["node_modules"]
"include": [
"**/*.ts",
"**/*.tsx",
".next/types/**/*.ts",
"next-env.d.ts",
"out/types/**/*.ts"
],
"exclude": [
"node_modules"
]
}