-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.js
34 lines (31 loc) · 863 Bytes
/
nuxt.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
export default defineNuxtConfig({
modules: ["@nuxtjs/tailwindcss", "@pinia/nuxt"],
app: {
head: {
title: "Art Gallery",
meta: [
{
name: "description",
content: "Browse our collection of beautiful artworks",
},
],
link: [
{ rel: "icon", type: "image/x-icon", href: "/favicon.ico" },
{
rel: "stylesheet",
href: "https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Raleway:wght@300;400;500&display=swap",
},
],
},
},
css: ["~/assets/css/main.css"],
devtools: { enabled: true },
compatibilityDate: "2025-03-10",
hooks: {
"build:before": async () => {
const { execSync } = require("child_process");
console.log("Initializing database...");
execSync("npm run init-db");
},
},
});