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'],
|
|
|
|
vite: {
|
|
|
|
css: {
|
|
|
|
preprocessorOptions: {
|
|
|
|
scss: {
|
|
|
|
additionalData: '@use "@/assets/styles/_variables.scss" as *;',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
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' },
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
2022-10-16 09:37:13 +00:00
|
|
|
hooks: {
|
|
|
|
async 'nitro:config'(config) {
|
|
|
|
const routes = await generatePaths('/blog/');
|
|
|
|
config.prerender.routes.push(...routes);
|
|
|
|
},
|
|
|
|
},
|
2022-10-15 15:20:33 +00:00
|
|
|
});
|