lunasqu.ee-nuxt/nuxt.config.ts

50 lines
1.3 KiB
TypeScript
Raw Normal View History

2022-10-16 09:37:13 +00:00
import { generatePaths } from './lib/blog/read-posts';
2022-10-15 15:20:33 +00:00
// https://v3.nuxtjs.org/api/configuration/nuxt.config
export default defineNuxtConfig({
css: ['@/assets/styles/index.scss'],
2024-11-11 16:00:38 +00:00
2022-10-15 15:20:33 +00:00
vite: {
css: {
preprocessorOptions: {
scss: {
additionalData: '@use "@/assets/styles/_variables.scss" as *;',
},
},
},
},
2024-11-11 16:00:38 +00:00
2022-10-15 15:30:04 +00:00
app: {
head: {
2022-10-15 15:35:55 +00:00
htmlAttrs: {
lang: 'en',
},
2022-10-15 15:30:04 +00:00
charset: 'utf-8',
viewport: 'width=device-width, initial-scale=1.0',
title: 'lunasqu.ee',
meta: [
{ name: 'description', content: "Evert Prants' personal website" },
{
name: 'keywords',
content:
'evert,lunasquee,lunasqu,evert prants website,evert prants koduleht,evert prants homepage,evert official,portfolio,portfoolio,projects,projektid',
},
],
link: [
{ rel: 'me', href: 'https://social.lunasqu.ee/diamond' },
{ rel: 'me', href: 'https://fosstodon.org/@evertprants' },
2024-11-11 16:00:38 +00:00
{ rel: 'me', href: 'https://bsky.app/profile/lunasqu.ee' },
2022-10-15 15:30:04 +00:00
],
},
},
2024-11-11 16:00:38 +00:00
2022-10-16 09:37:13 +00:00
hooks: {
async 'nitro:config'(config) {
const routes = await generatePaths('/blog/');
2023-09-22 15:01:40 +00:00
config.prerender?.routes?.push(...routes, '/blog/atom.xml');
2022-10-16 09:37:13 +00:00
},
},
2024-11-11 16:00:38 +00:00
compatibilityDate: '2024-11-11',
2022-10-15 15:20:33 +00:00
});