forked from preprio/nuxt-complete-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.ts
61 lines (61 loc) · 1.69 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
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
target: process.env.TARGET || "server",
app: {
head: {
title: "Prepr Patterns",
script: [
{
hid: "mux",
src: "https://cdn.jsdelivr.net/npm/@mux/mux-video@0",
},
// {
// innerHTML: `! function (e, t, p, r, n, a, s) {
// e[r] || ((n = e[r] = function () {
// n.process ? n.process.apply(n, arguments) : n.queue.push(arguments)
// }).queue = [], n.t = +new Date, (a = t.createElement(p)).async = 1, a.src = "https://cdn.tracking.prepr.io/js/prepr.min.js?t=" + 864e5 * Math.ceil(new Date / 864e5), (s = t.getElementsByTagName(p)[0]).parentNode.insertBefore(a, s))
// }(window, document, "script", "prepr"), prepr("init", "70857921ab59b2fe1bb34149c68d724f4e3cc1f2b9b921353e355fca22392dbf"), prepr("event", "pageload");`,
// type: "text/javascript",
// },
],
},
},
modules: ["@nuxtjs/apollo", "@nuxtjs/google-fonts"],
apollo: {
clients: {
default: "./apollo/prepr.ts",
asegment: "./apollo/asegment.ts",
bsegment: "./apollo/bsegment.ts",
},
},
runtimeConfig: {
public: {
PREPR_ACCESS_TOKEN: process.env.PREPR_ACCESS_TOKEN,
},
},
googleFonts: {
families: {
Inter: [400, 500, 600, 700],
},
},
vite: {
optimizeDeps: {
exclude: ["flowbite"],
},
},
build: {
transpile: ["mux"],
},
vue: {
compilerOptions: {
isCustomElement: (tag) => ["mux-player"].includes(tag),
},
},
css: ["~/assets/css/main.css"],
postcss: {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
},
});