-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext.config.js
187 lines (185 loc) · 8.75 KB
/
next.config.js
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
const oldPagesMapping = {
"/archive": "/articles/fallout1-2",
"/banners": "/gallery/others",
"/concept/anim": "/diggings/others/concepts/animations",
"/concept/box": "/diggings/others/items/box",
"/concept/chem": "/diggings/others/items/chem",
"/concept/cod": "/diggings/others/items/cod",
"/concept/cub": "/diggings/others/items/cub",
"/concept/demo": "/diggings/others/concepts/demo",
"/concept/holodisks": "/diggings/others/concepts/holodisks",
"/concept": "/diggings/others",
"/concept/key": "/diggings/others/items/key",
"/concept/kulon": "/diggings/others/items/kulon",
"/concept/neuro": "/diggings/others/items/neuro",
//"/concept/quests": "",
"/concept/redcard": "/diggings/others/items/redcard",
"/concept/switch": "/diggings/others/items/switch",
"/concept/thand": "/diggings/others/items/thand",
"/concept/zipgun": "/diggings/others/items/zipgun",
"/facts/aranc": "/articles/fallout1-2/aranc",
"/facts/bbweap": "/articles/fallout1-2/bbweap",
"/facts/economy": "/articles/fallout1-2/economy",
"/facts/f3geo": "/articles/fallout3/pre-release/f3geo",
"/facts/f3map": "/articles/fallout3/pre-release/f3map",
"/facts/fallout-1-editorial": "/articles/fallout1-2/fallout-1-editorial",
"/facts/fallout-2-editorial": "/articles/fallout1-2/fallout-2-editorial",
"/facts/fallout-tactics-2": "/articles/fallout1-2/fallout-tactics-2",
"/facts/fire": "/articles/fallout1-2/fire",
"/facts/fo3doors": "/articles/fallout3/pre-release/fo3doors",
"/facts/fo3industry": "/articles/fallout3/pre-release/fo3industry",
"/facts/gekkons": "/articles/fallout1-2/gekkons",
"/facts/gekkons2": "/articles/fallout1-2/gekkons2",
"/facts": "/articles/fallout1-2",
"/facts/items": "/articles/fallout1-2/items",
"/facts/klamath": "/articles/fallout1-2/klamath",
"/facts/lctions": "/articles/fallout1-2/lctions",
"/facts/modsort": "/articles/fallout1-2/modsort",
"/facts/nature": "/articles/fallout1-2/nature",
"/facts/nrarms": "/articles/fallout1-2/nrarms",
"/facts/numbers": "/articles/fallout1-2/numbers",
"/facts/redding": "/articles/fallout1-2/redding",
"/facts/religion": "/articles/fallout1-2/religion",
"/facts/screenshots": "/articles/fallout1-2/screenshots",
"/facts/standby": "/articles/fallout3/pre-release/standby",
"/facts/sulik": "/articles/fallout1-2/sulik",
"/facts/toxic": "/articles/fallout1-2/toxic",
"/facts/v13path": "/articles/fallout1-2/v13path",
"/facts/vbammo": "/articles/fallout3/van-buren/ammo",
"/facts/vbarmor": "/articles/fallout3/van-buren/armor",
"/facts/vbfaq": "/articles/fallout3/van-buren/faq",
"/facts/vbfire": "/articles/fallout3/van-buren/firearms",
"/facts/vbhand": "/articles/fallout3/van-buren/handarms",
"/facts/vbother": "/articles/fallout3/van-buren/others",
"/facts/vbposters": "/articles/fallout3/van-buren/posters",
"/facts/walls": "/articles/fallout1-2/walls",
"/fallout-3/achievements": "/articles/fallout3/post-release/achievements",
"/fallout-3/evolution": "/articles/fallout3/post-release/evolution",
"/fallout-3": "/articles/fallout3",
//"/files": "",
"/forum": "/",
"/gallery/comics": "/gallery/dgt-comics",
"/gallery/comics_all": "/gallery/dgt-comics",
"/gallery/concept": "/gallery/concept-arts",
"/gallery/dvg": "/gallery/dvg-comics",
"/gallery/dvg_all": "/gallery/dvg-comics",
"/gallery": "/gallery/wallpapers",
//"/gallery/screenshots": "",
"/gallery/stuff": "/gallery/others",
//"/gallery/wallpapers": "",
"/humor/dezinfo": "/articles/humor/developers/dezinfo",
"/humor/fallout": "/articles/humor/gamers/toolong",
"/humor/fo2hate": "/articles/fallout3/pre-release/fo2hate",
"/humor/graves": "/articles/humor/developers/graves",
"/humor/humor10": "/articles/humor/developers/humor10",
"/humor": "/articles/humor",
"/humor/krut": "/articles/humor/gamers/krut",
"/humor/lamp": "/articles/humor/gamers/lamp",
"/humor/quotes": "/articles/humor/developers/quotes",
"/humor/quotes/quotes": "/articles/humor/developers/quotes",
"/humor/story/17moments": "/articles/humor/fiction/17moments",
"/humor/story/cheaters": "/articles/humor/fiction/cheaters",
"/humor/town": "/articles/humor/gamers/town",
"/imgview": "/gallery/wallpapers",
//"/info/author": "",
"/info/contact": "/about",
"/info": "/about",
"/info/links": "/about/links",
"/info/music": "/about/music",
"/info/news/2006": "/about/news-archive/2006",
"/info/news/2007": "/about/news-archive/2007",
"/info/news/2008": "/about/news-archive/2008",
"/info/news/old": "/about/news-archive/oldest",
"/locations/abbey": "/diggings/locations/fallout2/abbey",
"/locations/blades": "/diggings/locations/fallout1/blades",
"/locations/bosdead": "/diggings/locations/fallout1/bosdead",
"/locations/burrows": "/diggings/locations/fallout1/burrows",
"/locations/denres": "/diggings/locations/fallout2/denres",
"/locations/desert13": "/diggings/locations/fallout2/desert13",
"/locations/epa": "/diggings/locations/fallout2/epa",
"/locations": "/diggings/locations",
"/locations/invaded": "/diggings/locations/fallout1/invaded",
"/locations/jackals": "/diggings/locations/fallout1/jackals",
"/locations/pvillage": "/diggings/locations/fallout2/pvillage",
"/locations/rippers": "/diggings/locations/fallout1/rippers",
"/locations/vipers": "/diggings/locations/fallout1/vipers",
"/persons/agatha": "/diggings/persons/fallout1/shady-sands#agatha",
"/persons/alan": "/diggings/persons/fallout1/boneyard#alan",
"/persons/amber": "/diggings/persons/fallout1/boneyard#amber",
"/persons/barterman": "/diggings/persons/fallout1/shady-sands#barterman",
"/persons/beca": "/diggings/persons/fallout1/boneyard#beca",
"/persons/brenden": "/diggings/persons/fallout1/bos#brenden",
"/persons/cheat": "/diggings/persons/fallout2/cheaters#vc",
"/persons/cheater": "/diggings/persons/fallout2/cheaters#sf",
"/persons/cheater2": "/diggings/persons/fallout2/cheaters#ncr",
"/persons/dolgan": "/diggings/persons/fallout1/boneyard#dolgan",
"/persons/dragon": "/diggings/persons/fallout1/boneyard#dragon",
"/persons/elder": "/diggings/persons/fallout1/shady-sands#elder",
"/persons/farli": "/diggings/persons/fallout1/bos#farli",
"/persons/fire": "/diggings/persons/fallout1/boneyard#fire",
//"/persons/genvault": "",
"/persons/heather": "/diggings/persons/fallout1/boneyard#heather",
"/persons/": "/diggings/persons/fallout1/junktown#hernandez",
"/persons/hubbian": "/diggings/persons/fallout1/hub#hubbian",
"/persons": "/diggings/persons",
"/persons/jake": "/diggings/persons/fallout1/boneyard#jake",
"/persons/jason": "/diggings/persons/fallout1/boneyard#jason",
"/persons/joe": "/diggings/persons/fallout2/joe",
"/persons/jtbob": "/diggings/persons/fallout1/junktown#jtbob",
"/persons/julianna": "/diggings/persons/fallout1/boneyard#julianna",
"/persons/kaga": "/diggings/persons/fallout2/kaga",
"/persons/lance": "/diggings/persons/fallout1/shady-sands#lance",
"/persons/marney": "/diggings/persons/fallout1/boneyard#marney",
"/persons/michelle": "/diggings/persons/fallout1/boneyard#michelle",
"/persons/monte": "/diggings/persons/fallout2/newreno#monte",
"/persons/nail": "/diggings/persons/fallout1/boneyard#nail",
"/persons/nikki": "/diggings/persons/fallout2/newreno#nikki",
"/persons/peter": "/diggings/persons/fallout1/boneyard#peter",
"/persons/rae": "/diggings/persons/fallout1/cathedral#rae",
"/persons/richie": "/diggings/persons/fallout1/hub#richie",
"/persons/rico": "/diggings/persons/fallout2/newreno#rico",
"/persons/romero": "/diggings/persons/fallout1/boneyard#romero",
"/persons/rufus": "/diggings/persons/fallout1/hub#rufus",
"/persons/sammy": "/diggings/persons/fallout1/shady-sands#sammy",
"/persons/tangler": "/diggings/persons/fallout1/boneyard#tangler",
"/persons/troy": "/diggings/persons/fallout1/hub#troy",
"/persons/uthern": "/diggings/persons/fallout1/cathedral#uthern",
"/persons/vasquez": "/diggings/persons/fallout1/junktown#vasquez",
"/preview": "/gallery",
"/r": "/",
"/toxic": "/articles/humor",
"/toxic/izvrat": "/articles/humor/toxic/izvrat",
"/toxic/maps": "/articles/humor/toxic/maps",
"/toxic/suicid": "/articles/humor/toxic/suicid",
"/toxic/toilet": "/articles/humor/toxic/toilet",
};
/** @type {import('next').NextConfig} */
const nextConfig = {
output: 'standalone',
reactStrictMode: true,
redirects: async () => {
return [
{
source: '/index.php',
destination: '/',
permanent: true,
},
{
source: '/:path*/index.php',
destination: '/:path*',
permanent: true,
},
{
source: '/:path*.php',
destination: '/:path*',
permanent: true,
},
...Object.entries(oldPagesMapping).map(([oldPath, newPath]) => ({
source: oldPath,
destination: newPath,
permanent: true,
}))
];
}
};
module.exports = nextConfig;