forked from dsilvaevje99/welcome-technical-challenge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.config.ts
71 lines (69 loc) · 1.35 KB
/
nuxt.config.ts
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
import { createResolver } from "@nuxt/kit";
import vuetify from "vite-plugin-vuetify";
const { resolve } = createResolver(import.meta.url);
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
devtools: { enabled: true },
css: [
"vuetify/lib/styles/main.sass",
"@mdi/font/css/materialdesignicons.min.css",
],
modules: [
"@sidebase/nuxt-auth",
"nuxt-server-utils",
"@pinia/nuxt",
"@pinia-plugin-persistedstate/nuxt",
[
"@nuxtjs/google-fonts",
{
families: {
["Schibsted Grotesk"]: true,
download: true,
inject: true,
},
},
],
],
build: {
transpile: ["vuetify", "pinia-plugin-persistedstate"],
},
vite: {
define: {
"process.env.DEBUG": false,
},
},
nuxtServerUtils: {
mongodbUri: process.env.MONGODB_URI,
},
nitro: {
plugins: ["~/server/index.ts"],
},
hooks: {
"vite:extendConfig": (config) => {
config.plugins?.push(
vuetify({
styles: { configFile: resolve("./settings.scss") },
})
);
},
},
auth: {
provider: {
type: "authjs",
},
},
components: [
{
path: "~/components",
pathPrefix: false,
},
],
routeRules: {
"/admin": {
ssr: false,
},
"/admin/**": {
ssr: false,
},
},
});