-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnuxt.config.ts
More file actions
79 lines (79 loc) · 1.73 KB
/
nuxt.config.ts
File metadata and controls
79 lines (79 loc) · 1.73 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
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
ssr: true,
runtimeConfig: {
public: {
siteUrl: process.env.SITE_URL,
},
},
app: {
head: {
title: "Galacticraft",
htmlAttrs: {
lang: "en-GB",
},
meta: [
{ charset: "utf-8" },
{ name: "viewport", content: "width=device-width, initial-scale=1" },
{
name: "description",
content:
"Galacticraft is all about exploring other planets, moons and asteroids! Each planet, moon and asteroid belt is a dimension in the game. The same goes for space stations.",
},
{
name: "apple-mobile-web-app-status-bar-style",
content: "black-translucent",
},
{
name: "mobile-web-app-capable",
content: "yes",
},
],
link: [{ rel: "icon", type: "image/x-icon", href: "/favicon.ico" }],
script: [
{
src: `https://www.googletagmanager.com/gtag/js?id=G-${process.env.GA_KEY}`,
async: true,
},
{
src: "/ga.js",
},
],
},
},
vite: {
css: {
preprocessorOptions: {
scss: {
api: "modern-compiler",
},
},
},
},
components: [
{
path: "@/components",
pathPrefix: false,
},
],
build: {
transpile: ["mixins"],
},
site: {
url: process.env.SITE_URL,
name: process.env.SITE_NAME,
},
modules: [
[
"@nuxtjs/sanity",
{
projectId: process.env.SANITY_KEY,
dataset: "production",
apiVersion: "2024-11-23",
useCdn: false,
},
],
"@nuxtjs/sitemap",
],
compatibilityDate: "2024-11-24",
});