-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnuxt.config.ts
More file actions
89 lines (88 loc) · 2.14 KB
/
nuxt.config.ts
File metadata and controls
89 lines (88 loc) · 2.14 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
// https://nuxt.com/docs/api/configuration/nuxt-config
import tailwindcss from "@tailwindcss/vite";
export default defineNuxtConfig({
compatibilityDate: "2024-11-01",
devtools: { enabled: true },
srcDir: "app",
css: ["~/assets/css/main.css"],
modules: ["@vite-pwa/nuxt", "@nuxt/icon"],
vite: {
plugins: [tailwindcss()],
server: {
allowedHosts: [".refind.id"],
},
},
nitro: {
prerender: {
autoSubfolderIndex: false,
},
},
app: {
head: {
title: "Muhamad Rizki - Experienced Software Engineer",
viewport:
"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no",
charset: "utf-8",
htmlAttrs: {
lang: "en",
class: "dark",
},
},
},
pwa: {
manifest: {
name: "Rizki - Experienced Software Engineer",
short_name: "Rizki",
description:
"Personal portfolio of Rizki, an Experienced Software Engineer.",
scope: "/",
start_url: "/",
display: "standalone",
background_color: "#ffffff",
theme_color: "#ffffff",
orientation: "portrait-primary",
icons: [
{
src: "/favicon.svg",
sizes: "any",
type: "image/svg+xml",
purpose: "any",
},
{
src: "/icon-192.png",
sizes: "192x192",
type: "image/png",
purpose: "any maskable",
},
{
src: "/icon-512.png",
sizes: "512x512",
type: "image/png",
purpose: "any maskable",
},
],
categories: ["productivity", "portfolio", "development"],
lang: "en",
dir: "ltr",
},
workbox: {
navigateFallback: "/",
navigateFallbackDenylist: [
/^\/jsoneval-rs($|\/)/,
/^\/rusto-rs($|\/)/,
],
runtimeCaching: [
{
urlPattern: /^\/(jsoneval-rs|rusto-rs)\/.*/,
handler: "NetworkOnly",
},
],
globPatterns: ["**/*.{js,css,html,ico,png,svg,json}"],
globIgnores: ["**/node_modules/**/*", "_nuxt/builds/**/*.json"],
},
devOptions: {
enabled: true,
type: "module",
},
},
});