优化图文页

This commit is contained in:
2026-04-28 17:11:42 +08:00
parent 674c202264
commit 040273586b
69 changed files with 3939 additions and 2302 deletions
+12 -10
View File
@@ -2,27 +2,29 @@ import type { NextConfig } from "next";
const nextConfig: NextConfig = {
serverExternalPackages: [
'playwright-extra',
'puppeteer-extra-plugin-stealth',
'puppeteer-extra-plugin',
], webpack: (config) => {
"playwright-extra",
"puppeteer-extra-plugin-stealth",
"puppeteer-extra-plugin",
],
webpack: (config) => {
config.module.rules.push({
test: /\.(md|txt)$/i,
type: 'asset/source', // 让这些文件作为纯文本注入
type: "asset/source", // 让这些文件作为纯文本注入
});
return config;
}, turbopack: {
},
turbopack: {
rules: {
'*.md': { loaders: ['raw-loader'], as: '*.js' },
'*.txt': { loaders: ['raw-loader'], as: '*.js' },
"*.md": { loaders: ["raw-loader"], as: "*.js" },
"*.txt": { loaders: ["raw-loader"], as: "*.js" },
},
},
/* config options here */
images: {
remotePatterns: [
{
protocol: 'https',
hostname: 's3l.xn--876a.net',
protocol: "https",
hostname: "s3l.xn--876a.net",
},
],
},