-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnuxt.config.js
More file actions
126 lines (124 loc) · 3.15 KB
/
nuxt.config.js
File metadata and controls
126 lines (124 loc) · 3.15 KB
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
import { defineNuxtConfig } from "nuxt";
import { resolve, dirname } from "node:path";
import { fileURLToPath } from "url";
import VueI18nPlugin from "@intlify/unplugin-vue-i18n/vite";
export default defineNuxtConfig({
//Metadata
app: {
head: {
title: "Nuxt Meta test",
meta: [
{ "data-n-head": "ssr", charset: "utf-8" },
{
"data-n-head": "ssr",
name: "viewport",
content:
"width=device-width, initial-scale=1, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no",
},
{
"data-n-head": "ssr",
"data-hid": "description",
name: "description",
content: "Testing Meta data",
},
{
"data-n-head": "ssr",
"data-hid": "og:url",
property: "og:url",
content: "https://nuxt-3-meta-test.netlify.app/",
},
{
"data-n-head": "ssr",
"data-hid": "og:type",
property: "og:type",
content: "website",
},
{
"data-n-head": "ssr",
"data-hid": "og:title",
property: "og:title",
content: "Hahu Jobs",
},
{
"data-n-head": "ssr",
"data-hid": "og:description",
property: "og:description",
content: "Testing Meta data",
},
{
"data-n-head": "ssr",
"data-hid": "og:image",
property: "og:image",
content: "https://nuxt-3-meta-test.netlify.app/images/meta_img.png",
},
// twitter
{
"data-n-head": "ssr",
"data-hid": "twitter:card",
property: "twitter:card",
content: "summary_large_image",
},
{
"data-n-head": "ssr",
"data-hid": "twitter:domain",
property: "twitter:domain",
content: "Hahu-nuxt-3-dep.netlify.app",
},
{
"data-n-head": "ssr",
"data-hid": "twitter:url",
property: "twitter:url",
content: "https://nuxt-3-meta-test.netlify.app/",
},
{
"data-n-head": "ssr",
"data-hid": "twitter:title",
property: "twitter:title",
content: "Hahu Jobs",
},
{
"data-n-head": "ssr",
"data-hid": "twitter:description",
property: "twitter:description",
content: "Testing Meta data",
},
{
"data-n-head": "ssr",
"data-hid": "twitter:image",
property: "twitter:image",
content: "/images/logo_150.png",
},
],
},
},
image: {
screens: {
xs: 320,
sm: 640,
md: 768,
lg: 1024,
xl: 1280,
xxl: 1536,
"2xl": 1536,
},
},
ssr: true,
modules: ["@nuxt/image-edge"],
image: {
domains: ['nuxtjs.org'],
staticFilename: '/images/[name]-[hash][ext]',
dir: 'public'
},
vite: {
plugins: [
VueI18nPlugin({
include: [
resolve(dirname(fileURLToPath(import.meta.url)), "./locales/*.json"),
],
}),
],
},
build: {
transpile: ["@intlify/unplugin-vue-i18n", "@nuxt/image-edge"],
},
});