-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnetlify.toml
More file actions
214 lines (176 loc) · 5.14 KB
/
netlify.toml
File metadata and controls
214 lines (176 loc) · 5.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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
# =============================================================================
# FINAL & FORCEFUL CONFIGURATION for a Monorepo with a Vite SPA
# =============================================================================
[build]
command = "cd netlify/functions && npm install && cd ../../microkeebs && npm install && npm run build"
publish = "."
[functions]
directory = "netlify/functions"
node_bundler = "esbuild"
external_node_modules = ["sharp"]
# --- ANONQ PROXY ---
[[redirects]]
from = "/anonq"
to = "https://anonqmicr.netlify.app/anonq"
status = 200
force = true
[[redirects]]
from = "/anonq/"
to = "https://anonqmicr.netlify.app/anonq"
status = 200
force = true
[[redirects]]
from = "/anonq/*"
to = "https://anonqmicr.netlify.app/anonq/:splat"
status = 200
force = true
# --- DIALOGUE ---
# Note: /assets/* redirect removed - was breaking frames.zip loading for run.js easter egg
[[redirects]]
from = "/favicon.svg"
to = "https://dialoguegen.vercel.app/favicon.svg"
status = 200
force = true
[[redirects]]
from = "/dialogue/favicon.svg"
to = "https://dialoguegen.vercel.app/favicon.svg"
status = 200
force = true
[[redirects]]
from = "/dialogue"
to = "https://dialoguegen.vercel.app/"
status = 200
force = true
[[redirects]]
from = "/dialogue/"
to = "https://dialoguegen.vercel.app/"
status = 200
force = true
[[redirects]]
from = "/dialogue/*"
to = "https://dialoguegen.vercel.app/:splat"
status = 200
force = true
# --- REDIRECT & REWRITE RULES ---
# The order and `force` attribute are critical.
# Rule 1: Serve assets correctly. This MUST be first.
[[redirects]]
from = "/microkeebs/assets/*"
to = "/microkeebs/dist/assets/:splat"
status = 200
force = true
# Rule 2: Explicitly handle the base path WITHOUT a trailing slash.
[[redirects]]
from = "/microkeebs/"
to = "/microkeebs/dist/index.html"
status = 200
force = true
# Rule 3: Serve images from dist
[[redirects]]
from = "/microkeebs/images/*"
to = "/microkeebs/dist/images/:splat"
status = 200
# --- SPA/INTERNAL REDIRECTS ---
[[redirects]]
from = "/microkeebs"
to = "/microkeebs/"
status = 302
[[redirects]]
from = "/regular-projects"
to = "/wip"
status = 302
[[redirects]]
from = "/big-projects"
to = "/wip"
status = 302
# --- EXTERNAL REDIRECTS ---
[[redirects]]
from = "/youtube"
to = "https://www.youtube.com/@Microck"
status = 302
[[redirects]]
from = "/twitter"
to = "https://x.com/JustMicrock"
status = 302
[[redirects]]
from = "/github"
to = "https://github.com/Microck"
status = 302
[[redirects]]
from = "/anime"
to = "https://anilist.co/user/Microck/"
status = 302
[[redirects]]
from = "/films"
to = "https://letterboxd.com/microck_/"
status = 302
[[redirects]]
from = "/books"
to = "https://www.goodreads.com/user/show/169975249-microck"
status = 302
[[redirects]]
from = "/games"
to = "https://backloggd.com/u/Microck/"
status = 302
[[redirects]]
from = "/music"
to = "https://stats.fm/xmicrock"
status = 302
[[redirects]]
from = "/minecraft"
to = "https://namemc.com/profile/xMicrock.1"
status = 302
[[redirects]]
from = "/osu"
to = "https://osu.ppy.sh/users/13935109"
status = 302
[[redirects]]
from = "/vlr"
to = "https://tracker.gg/valorant/profile/riot/Secret%23666/performance?platform=pc&playlist=competitive"
status = 302
# --- MICROKEEBS SOCIALS ---
[[redirects]]
from = "/microkeebs/youtube"
to = "https://www.youtube.com/@microkeebs"
status = 302
[[redirects]]
from = "/microkeebs/instagram"
to = "https://www.instagram.com/microkeebs/"
status = 302
[[redirects]]
from = "/microkeebs/tiktok"
to = "https://www.tiktok.com/@microkeebs"
status = 302
[[redirects]]
from = "/microkeebs/reddit"
to = "https://www.reddit.com/user/Microkeebs/"
status = 302
[[redirects]]
from = "https://quarzite.micr.dev/*"
to = "https://micr.dev/quarzite"
status = 301
force = true
[[redirects]]
from = "https://tile.micr.dev/*"
to = "https://micr.dev/quarzite"
status = 301
force = true
# --- SOCR SOCIALS ---
[[redirects]]
from = "/socr/youtube"
to = "https://www.youtube.com/@socr.marcos"
status = 302
[[redirects]]
from = "/socr/instagram"
to = "https://www.instagram.com/http.socr"
status = 302
# --- SECURITY HEADERS ---
[[headers]]
for = "/*"
[headers.values]
Strict-Transport-Security = "max-age=31536000; includeSubDomains; preload"
X-Frame-Options = "SAMEORIGIN"
X-Content-Type-Options = "nosniff"
Referrer-Policy = "strict-origin-when-cross-origin"
Permissions-Policy = "camera=(), microphone=(), geolocation=()"
Content-Security-Policy = "default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval' https://cdn.jsdelivr.net https://www.youtube.com https://s.ytimg.com https://sleepie.uk; worker-src 'self' blob:; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com https://unpkg.com; font-src 'self' https://fonts.gstatic.com https://unpkg.com; img-src 'self' data: https:; connect-src 'self' https: blob:; frame-src 'self' https://www.youtube.com https://open.spotify.com https://jspaint.app https://anonqmicr.netlify.app https://dialoguegen.vercel.app; object-src 'none';"