mirror of
https://github.com/ReCloudStudio/WebHooker.git
synced 2026-09-22 16:11:29 +00:00
feat: migrate to Nuxt 4 (Nitro) and Tailwind CSS v3
This commit is contained in:
parent
f4959eebf8
commit
b139712a91
166 changed files with 19790 additions and 5539 deletions
43
nuxt.config.ts
Normal file
43
nuxt.config.ts
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
export default defineNuxtConfig({
|
||||
compatibilityDate: "2025-07-15",
|
||||
modules: ["@nuxtjs/tailwindcss"],
|
||||
// Target: Cloudflare Workers (single _worker.js via the cloudflare_module preset).
|
||||
nitro: {
|
||||
preset: "cloudflare_module",
|
||||
errorHandler: "~~/server/error-handler",
|
||||
experimental: {
|
||||
tasks: true,
|
||||
},
|
||||
scheduledTasks: {
|
||||
"*/5 * * * *": ["discord-sync", "telegram-sync", "audit-prune"],
|
||||
},
|
||||
},
|
||||
app: {
|
||||
head: {
|
||||
title: "WebHooker",
|
||||
link: [
|
||||
{
|
||||
rel: "stylesheet",
|
||||
href: "https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap",
|
||||
},
|
||||
],
|
||||
},
|
||||
},
|
||||
tailwindcss: {
|
||||
cssPath: "~/assets/css/main.css",
|
||||
configPath: "tailwind.config",
|
||||
},
|
||||
devtools: { enabled: false },
|
||||
runtimeConfig: {
|
||||
// Overridable via NUXT_PUBLIC_DOCS_URL / NUXT_PUBLIC_REPO_URL.
|
||||
public: {
|
||||
docsUrl: "",
|
||||
repoUrl: "",
|
||||
},
|
||||
},
|
||||
// The config console stays a client-side SPA (same behavior as the old
|
||||
// standalone admin app); home/legal pages render server-side.
|
||||
routeRules: {
|
||||
"/admin/**": { ssr: false },
|
||||
},
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue