|
| 1 | +const BASE_URL = "https://diffviewer.vercel.app"; |
| 2 | +const domainAliases = [ |
| 3 | + "https://diffchecker.vercel.app/", |
| 4 | + "https://textdiff.vercel.app/" |
| 5 | +] |
| 6 | +const canonicalLinks = domainAliases.map(x => ({ rel: "canonical", href: x })) |
| 7 | +const DESCRIPTION = "A privacy focused, secure, easy sharable and simple diff viewer"; |
1 | 8 | export default {
|
2 |
| - // Target: https://go.nuxtjs.dev/config-target |
3 | 9 | target: 'static',
|
4 |
| - |
5 |
| - // Global page headers: https://go.nuxtjs.dev/config-head |
6 | 10 | head: {
|
7 |
| - title: 'offline-diff-viewer', |
| 11 | + title: 'Diff viewer', |
8 | 12 | meta: [
|
9 | 13 | { charset: 'utf-8' },
|
10 | 14 | { name: 'viewport', content: 'width=device-width, initial-scale=1' },
|
11 |
| - { hid: 'description', name: 'description', content: '' }, |
12 |
| - { name: 'format-detection', content: 'telephone=no' } |
| 15 | + { name: 'format-detection', content: 'telephone=no' }, |
| 16 | + { name: "theme-color", content: "#2563EB" }, |
| 17 | + { name: "og:url", property: "og:url", content: `${BASE_URL}` }, |
| 18 | + { name: "og:image", property: "og:url", content: `${BASE_URL}/brand-430x495.png` }, |
| 19 | + { name: "twitter:title", property: "og:url", content: DESCRIPTION }, |
| 20 | + { name: "og:title", property: "og:url", content: DESCRIPTION }, |
| 21 | + { name: "og:type", property: "og:url", content: "website" }, |
| 22 | + { name: "description", property: "og:url", content: DESCRIPTION }, |
| 23 | + { name: "og:description", property: "og:url", content: DESCRIPTION }, |
| 24 | + { name: "twitter:description", property: "og:url", content: DESCRIPTION }, |
| 25 | + { name: "twitter:card", property: "og:url", content: "summary" }, |
| 26 | + { name: "twitter:creator", property: "og:url", content: "@technikhil314" }, |
| 27 | + { name: "og:image", property: "og:url", content: `${BASE_URL}/128x128.png` }, |
| 28 | + { name: "og:image", property: "og:url", content: `${BASE_URL}/brand-192x192.png` }, |
| 29 | + { name: "og:image", property: "og:url", content: `${BASE_URL}/brand-200x200.png` }, |
| 30 | + { name: "og:image", property: "og:url", content: `${BASE_URL}/brand-512x512.png` }, |
| 31 | + { name: "og:image", property: "og:url", content: `${BASE_URL}/brand-800x800.png` }, |
| 32 | + { name: "image", property: "og:url", content: `${BASE_URL}/brand-1200x600.png` }, |
| 33 | + { name: "og:image:alt", property: "og:url", content: DESCRIPTION }, |
| 34 | + { name: "twitter:image", property: "og:url", content: `${BASE_URL}/128x128.png` }, |
13 | 35 | ],
|
14 | 36 | link: [
|
15 |
| - { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' } |
| 37 | + { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }, |
| 38 | + { rel: "manifest", href: "/manifest.json" }, |
| 39 | + { rel: "shortcut icon", href: "/favicon.ico", type: "image/x-icon" }, |
| 40 | + { rel: "apple-touch-icon", href: "/apple-touch-icon.png" }, |
| 41 | + { rel: "apple-touch-icon", sizes: "57x57", href: "/apple-touch-icon-57x57.png" }, |
| 42 | + { rel: "apple-touch-icon", sizes: "72x72", href: "/apple-touch-icon-72x72.png" }, |
| 43 | + { rel: "apple-touch-icon", sizes: "76x76", href: "/apple-touch-icon-76x76.png" }, |
| 44 | + { rel: "apple-touch-icon", sizes: "114x114", href: "/apple-touch-icon-114x114.png" }, |
| 45 | + { rel: "apple-touch-icon", sizes: "120x120", href: "/apple-touch-icon-120x120.png" }, |
| 46 | + { rel: "apple-touch-icon", sizes: "144x144", href: "/apple-touch-icon-144x144.png" }, |
| 47 | + { rel: "apple-touch-icon", sizes: "152x152", href: "/apple-touch-icon-152x152.png" }, |
| 48 | + { rel: "apple-touch-icon", sizes: "180x180", href: "/apple-touch-icon-180x180.png" }, |
| 49 | + ...canonicalLinks |
16 | 50 | ]
|
17 | 51 | },
|
18 | 52 |
|
@@ -53,5 +87,6 @@ export default {
|
53 | 87 |
|
54 | 88 | // Build Configuration: https://go.nuxtjs.dev/config-build
|
55 | 89 | build: {
|
| 90 | + extractCSS: true |
56 | 91 | }
|
57 | 92 | }
|
0 commit comments