-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.ts
68 lines (66 loc) · 1.83 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
import { defineNuxtConfig } from 'nuxt'
import '@nuxt3/graphql-codegen-module'
// import { InMemoryCache } from '@apollo/client/core'
// https://v3.nuxtjs.org/api/configuration/nuxt.config
export default defineNuxtConfig({
serverMiddleware: [
// Will register file from project server-middleware directory to handle /server-api/* requests
{ path: "/api", handler: "~/api-backend/index.ts" },
],
css: [
// Load a Node.js module directly (here it's a Sass file)
'bulma',
'assets/css/main.scss'
],
buildModules: [
'@nuxt3/apollo-module',
'@nuxt3/graphql-codegen-module'
],
modules: [
'@pinia/nuxt'
// '@nuxtjs/apollo',
// '@nuxtjs/i18n',
],
apollo: {
clientConfigs: {
default: {
uri: '/api/graphql',
// cache: new InMemoryCache()
},
},
},
graphqlCodegen: {
schema: 'http://localhost:3000/api/graphql'
}
// i18n: {
// locales: [
// {
// code: 'ca',
// file: 'ca-ES.json',
// iso: 'ca-ES',
// name: 'Català'
// },
// {
// code: 'es',
// file: 'es-ES.json',
// iso: 'es-ES',
// name: 'Español'
// },
// {
// code: 'en',
// file: 'en-US.json',
// iso: 'en-US',
// name: 'English'
// }
// ],
// lazy: true,
// langDir: 'lang/',
// defaultLocale: 'ca',
// baseUrl: function() {return process.env.BASE_URL}
// },
// head () {
// if (!this.$nuxtI18nHead){
// return this.$nuxtI18nHead({ addSeoAttributes: true })
// }
// }
})