mirror of
https://github.com/hpware/news-analyze.git
synced 2025-06-23 13:04:23 +00:00
51 lines
1.2 KiB
TypeScript
51 lines
1.2 KiB
TypeScript
export default defineNuxtConfig({
|
|
compatibilityDate: "2025-05-06",
|
|
devtools: { enabled: true },
|
|
routeRules: {
|
|
"/": { redirect: "/home" },
|
|
"/zh_tw": { redirect: "/zh_tw/home" },
|
|
"/api/rss/**": { swr: 3600 },
|
|
},
|
|
css: ["~/styles/main.css"],
|
|
modules: [
|
|
"@nuxt/image",
|
|
"@nuxtjs/robots",
|
|
"@nuxtjs/seo",
|
|
"@nuxtjs/i18n",
|
|
"@nuxtjs/tailwindcss",
|
|
],
|
|
i18n: {
|
|
defaultLocale: "en",
|
|
vueI18n: "./i18n.config.ts",
|
|
locales: [
|
|
{ code: "en", name: "English", file: "en.json" },
|
|
{ code: "zh_tw", name: "Chinese Tradional", file: "zh-tw.json" },
|
|
],
|
|
},
|
|
site: {
|
|
url: "https://news.yuanhau.com",
|
|
title: "BlindSpec",
|
|
description: "",
|
|
},
|
|
app: {
|
|
head: {
|
|
title: "",
|
|
meta: [
|
|
{ "http-equiv": "X-UA-Compatible", content: "IE=edge" },
|
|
{ charset: "utf-8" },
|
|
{ name: "viewport", content: "width=device-width, initial-scale=1" },
|
|
{ name: "og:author", content: "@hpware on GitHub" },
|
|
{
|
|
name: "og:author:email",
|
|
content: "public+newscompareauthor@yuanhau.com",
|
|
},
|
|
],
|
|
},
|
|
},
|
|
postcss: {
|
|
plugins: {
|
|
tailwindcss: {},
|
|
autoprefixer: {},
|
|
}, // Add your content paths here
|
|
},
|
|
});
|