65 lines
1.9 KiB
TypeScript
65 lines
1.9 KiB
TypeScript
import tailwindcss from "@tailwindcss/vite";
|
||
|
||
// https://nuxt.com/docs/api/configuration/nuxt-config
|
||
export default defineNuxtConfig({
|
||
modules: ["@nuxtjs/color-mode", "@nuxt/content", "@nuxt/fonts", "@nuxt/image", "@nuxt/icon"],
|
||
colorMode: {
|
||
classSuffix: "",
|
||
preference: "system",
|
||
fallback: "dark",
|
||
},
|
||
devtools: { enabled: true },
|
||
compatibilityDate: "2024-04-03",
|
||
css: ["~/assets/css/main.css"],
|
||
vite: {
|
||
plugins: [tailwindcss()],
|
||
},
|
||
runtimeConfig: {
|
||
public: {
|
||
siteUrl: 'https://blog.pumpkinmc.org',
|
||
},
|
||
},
|
||
app: {
|
||
head: {
|
||
titleTemplate: '%s | Pumpkin Blog',
|
||
meta: [
|
||
{ charset: 'utf-8' },
|
||
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
|
||
{ name: 'description', content: 'Thoughts, updates, and more from Pumpkin-MC.' },
|
||
{ property: 'og:site_name', content: 'Pumpkin Blog' },
|
||
{ name: 'twitter:card', content: 'summary_large_image' },
|
||
// any other site‑wide defaults
|
||
],
|
||
link: [
|
||
{
|
||
rel: "icon",
|
||
type: "image/svg+xml",
|
||
href: "/images/icon.svg",
|
||
},
|
||
{
|
||
rel: "alternate",
|
||
type: "application/rss+xml",
|
||
title: "Pumpkin Blog RSS Feed",
|
||
href: "/feed.xml",
|
||
},
|
||
],
|
||
},
|
||
},
|
||
fonts: {
|
||
families: [
|
||
{
|
||
name: "Bricolage Grotesque",
|
||
provider: "google",
|
||
weights: [400, 600, 800],
|
||
},
|
||
],
|
||
},
|
||
nitro: {
|
||
prerender: {
|
||
ignore: ["/developers", "/contributors", "/download"],
|
||
crawlLinks: true,
|
||
routes: ["/", "/feed.xml"],
|
||
},
|
||
},
|
||
});
|