2021-09-24 10:08:30 +09:00
|
|
|
const rewrites = async () => {
|
|
|
|
return [
|
|
|
|
{
|
|
|
|
source: '/minecraft/players/:uuid(\[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12})',
|
|
|
|
destination: '/minecraft/players/:uuid'
|
|
|
|
},
|
|
|
|
{
|
2021-10-03 13:12:11 +09:00
|
|
|
source: '/minecraft/players/:ign',
|
|
|
|
destination: '/minecraft/lookup/:ign'
|
2021-09-24 10:08:30 +09:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
2021-12-11 18:07:22 +09:00
|
|
|
module.exports = {
|
2021-04-21 17:17:07 +09:00
|
|
|
images: {
|
2021-09-24 16:47:27 +09:00
|
|
|
domains: ['mackerel.io', 'mc-heads.net', 'crafatar.com'],
|
2021-04-21 17:17:07 +09:00
|
|
|
},
|
2021-05-23 15:45:54 +09:00
|
|
|
webpack: function (config) {
|
|
|
|
config.module.rules.push({
|
|
|
|
test: /\.md$/,
|
|
|
|
use: 'raw-loader',
|
|
|
|
})
|
|
|
|
return config
|
|
|
|
},
|
2021-09-22 08:23:29 +09:00
|
|
|
async redirects() {
|
|
|
|
return [
|
|
|
|
{
|
|
|
|
source: '/wishlist',
|
|
|
|
destination: 'https://www.amazon.jp/hz/wishlist/ls/8WTKCPWKOJ2N?ref_=wl_share',
|
|
|
|
permanent: true,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
source: '/scrapbox',
|
|
|
|
destination: 'https://scrapbox.io/yude',
|
|
|
|
permanent: true,
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2021-09-24 10:08:30 +09:00
|
|
|
rewrites,
|
2021-12-11 18:07:22 +09:00
|
|
|
}
|