-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathnuxt.config.js
More file actions
80 lines (79 loc) · 2.16 KB
/
nuxt.config.js
File metadata and controls
80 lines (79 loc) · 2.16 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
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
devtools: { enabled: false },
devServer: {
port: process.env.PORT || 20231,
},
// Global page headers: https://go.nuxtjs.dev/config-head
app: {
head: {
title: "MauCoding - Tech from engineer perspective",
htmlAttrs: {
lang: "id",
},
script:
process.env.NODE_ENV !== "development"
? [
{
hid: "ganal-script1",
src: "https://www.googletagmanager.com/gtag/js?id=G-9Q4K6G3KHT",
type: "text/javascript",
charset: "utf-8",
async: true,
defer: true,
},
{
hid: "ganal-script2",
innerHTML: `
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-9Q4K6G3KHT');
`,
type: "text/javascript",
charset: "utf-8",
async: true,
defer: true,
},
{
hid: "gads",
async: true,
src: "https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-4468477322781117",
crossorigin: "anonymous",
},
]
: [],
},
},
build: {
transpile: ["axios"],
},
vite: {
server: {},
},
modules: ["nuxt-quasar-ui"],
quasar: {
/* */
},
alias: {
"@": "/",
"@components": "/components",
"@public": "/public",
"@helpers": "/helpers",
"@consts": "/consts",
"@services": "/services",
},
css: ["@public/assets/style/style.1.0.0.css"],
meta: {
title: "MauCoding - Tech From Engineer Perspective",
description:
"MauCoding by YMG, kami membahas seputar dunia tech dari Enginer Perspective. Saat ini berfokus pada dunia software development.",
},
runtimeConfig: {
public: {
APP_KEY: process.env.APP_KEY,
MCDG_WEB_HOST: process.env.MCDG_WEB_HOST,
},
},
compatibilityDate: "2025-10-02",
});