Fix visual novels redirection (#98)

This commit is contained in:
Sakura Knoll
2022-05-12 01:40:27 +09:00
committed by GitHub
Unverified
parent a33d32b0a9
commit 51b3e86d33
3 changed files with 88 additions and 81 deletions
+21 -14
View File
@@ -64,38 +64,45 @@ module.exports = {
return [ return [
{ {
source: '/ko-KR/honkai3rd/novels/ae', source: '/ko-KR/honkai3rd/novels/ae',
destination: destination: '/novels/ae/ko-KR/index.html',
process.env.NEXT_PUBLIC_BASE_URL + '/novels/ae/ko-KR/index.html', locale: false,
},
{
source: '/en-US/honkai3rd/novels/ae',
destination: '/novels/ae/en-US/index.html',
locale: false, locale: false,
}, },
{ {
source: '/honkai3rd/novels/ae', source: '/honkai3rd/novels/ae',
destination: destination: '/novels/ae/en-US/index.html',
process.env.NEXT_PUBLIC_BASE_URL + '/novels/ae/en-US/index.html',
}, },
{ {
source: '/ko-KR/honkai3rd/novels/duriduri', source: '/ko-KR/honkai3rd/novels/duriduri',
destination: destination: '/novels/duriduri/ko-KR/index.html',
process.env.NEXT_PUBLIC_BASE_URL + locale: false,
'/novels/duriduri/ko-KR/index.html', },
{
source: '/en-US/honkai3rd/novels/duriduri',
destination: '/novels/duriduri/en-US/index.html',
locale: false, locale: false,
}, },
{ {
source: '/honkai3rd/novels/duriduri', source: '/honkai3rd/novels/duriduri',
destination: destination: '/novels/duriduri/en-US/index.html',
process.env.NEXT_PUBLIC_BASE_URL +
'/novels/duriduri/en-US/index.html',
}, },
{ {
source: '/ko-KR/honkai3rd/novels/7s', source: '/ko-KR/honkai3rd/novels/7s',
destination: destination: '/novels/7s/ko-KR/index.html',
process.env.NEXT_PUBLIC_BASE_URL + '/novels/7s/ko-KR/index.html', locale: false,
},
{
source: '/en-US/honkai3rd/novels/7s',
destination: '/novels/7s/en-US/index.html',
locale: false, locale: false,
}, },
{ {
source: '/honkai3rd/novels/7s', source: '/honkai3rd/novels/7s',
destination: destination: '/novels/7s/en-US/index.html',
process.env.NEXT_PUBLIC_BASE_URL + '/novels/7s/en-US/index.html',
}, },
] ]
}, },
+66 -66
View File
@@ -307,9 +307,9 @@
"integrity": "sha512-TDoPum4SHdfPiGSAaRBw7ECyI8VaHpK8GJugbJIJuqyh6kzw9ZLJZW3HGL3NNrJGxcAixUvqROm+YuQOo5eXtg==" "integrity": "sha512-TDoPum4SHdfPiGSAaRBw7ECyI8VaHpK8GJugbJIJuqyh6kzw9ZLJZW3HGL3NNrJGxcAixUvqROm+YuQOo5eXtg=="
}, },
"@next/env": { "@next/env": {
"version": "12.1.5", "version": "12.1.6",
"resolved": "https://registry.npmjs.org/@next/env/-/env-12.1.5.tgz", "resolved": "https://registry.npmjs.org/@next/env/-/env-12.1.6.tgz",
"integrity": "sha512-+34yUJslfJi7Lyx6ELuN8nWcOzi27izfYnZIC1Dqv7kmmfiBVxgzR3BXhlvEMTKC2IRJhXVs2FkMY+buQe3k7Q==" "integrity": "sha512-Te/OBDXFSodPU6jlXYPAXpmZr/AkG6DCATAxttQxqOWaq6eDFX25Db3dK0120GZrSZmv4QCe9KsZmJKDbWs4OA=="
}, },
"@next/eslint-plugin-next": { "@next/eslint-plugin-next": {
"version": "12.0.7", "version": "12.0.7",
@@ -337,75 +337,75 @@
} }
}, },
"@next/swc-android-arm-eabi": { "@next/swc-android-arm-eabi": {
"version": "12.1.5", "version": "12.1.6",
"resolved": "https://registry.npmjs.org/@next/swc-android-arm-eabi/-/swc-android-arm-eabi-12.1.5.tgz", "resolved": "https://registry.npmjs.org/@next/swc-android-arm-eabi/-/swc-android-arm-eabi-12.1.6.tgz",
"integrity": "sha512-SKnGTdYcoN04Y2DvE0/Y7/MjkA+ltsmbuH/y/hR7Ob7tsj+8ZdOYuk+YvW1B8dY20nDPHP58XgDTSm2nA8BzzA==", "integrity": "sha512-BxBr3QAAAXWgk/K7EedvzxJr2dE014mghBSA9iOEAv0bMgF+MRq4PoASjuHi15M2zfowpcRG8XQhMFtxftCleQ==",
"optional": true "optional": true
}, },
"@next/swc-android-arm64": { "@next/swc-android-arm64": {
"version": "12.1.5", "version": "12.1.6",
"resolved": "https://registry.npmjs.org/@next/swc-android-arm64/-/swc-android-arm64-12.1.5.tgz", "resolved": "https://registry.npmjs.org/@next/swc-android-arm64/-/swc-android-arm64-12.1.6.tgz",
"integrity": "sha512-YXiqgQ/9Rxg1dXp6brXbeQM1JDx9SwUY/36JiE+36FXqYEmDYbxld9qkX6GEzkc5rbwJ+RCitargnzEtwGW0mw==", "integrity": "sha512-EboEk3ROYY7U6WA2RrMt/cXXMokUTXXfnxe2+CU+DOahvbrO8QSWhlBl9I9ZbFzJx28AGB9Yo3oQHCvph/4Lew==",
"optional": true "optional": true
}, },
"@next/swc-darwin-arm64": { "@next/swc-darwin-arm64": {
"version": "12.1.5", "version": "12.1.6",
"resolved": "https://registry.npmjs.org/@next/swc-darwin-arm64/-/swc-darwin-arm64-12.1.5.tgz", "resolved": "https://registry.npmjs.org/@next/swc-darwin-arm64/-/swc-darwin-arm64-12.1.6.tgz",
"integrity": "sha512-y8mhldb/WFZ6lFeowkGfi0cO/lBdiBqDk4T4LZLvCpoQp4Or/NzUN6P5NzBQZ5/b4oUHM/wQICEM+1wKA4qIVw==", "integrity": "sha512-P0EXU12BMSdNj1F7vdkP/VrYDuCNwBExtRPDYawgSUakzi6qP0iKJpya2BuLvNzXx+XPU49GFuDC5X+SvY0mOw==",
"optional": true "optional": true
}, },
"@next/swc-darwin-x64": { "@next/swc-darwin-x64": {
"version": "12.1.5", "version": "12.1.6",
"resolved": "https://registry.npmjs.org/@next/swc-darwin-x64/-/swc-darwin-x64-12.1.5.tgz", "resolved": "https://registry.npmjs.org/@next/swc-darwin-x64/-/swc-darwin-x64-12.1.6.tgz",
"integrity": "sha512-wqJ3X7WQdTwSGi0kIDEmzw34QHISRIQ5uvC+VXmsIlCPFcMA+zM5723uh8NfuKGquDMiEMS31a83QgkuHMYbwQ==", "integrity": "sha512-9FptMnbgHJK3dRDzfTpexs9S2hGpzOQxSQbe8omz6Pcl7rnEp9x4uSEKY51ho85JCjL4d0tDLBcXEJZKKLzxNg==",
"optional": true "optional": true
}, },
"@next/swc-linux-arm-gnueabihf": { "@next/swc-linux-arm-gnueabihf": {
"version": "12.1.5", "version": "12.1.6",
"resolved": "https://registry.npmjs.org/@next/swc-linux-arm-gnueabihf/-/swc-linux-arm-gnueabihf-12.1.5.tgz", "resolved": "https://registry.npmjs.org/@next/swc-linux-arm-gnueabihf/-/swc-linux-arm-gnueabihf-12.1.6.tgz",
"integrity": "sha512-WnhdM5duONMvt2CncAl+9pim0wBxDS2lHoo7ub/o/i1bRbs11UTzosKzEXVaTDCUkCX2c32lIDi1WcN2ZPkcdw==", "integrity": "sha512-PvfEa1RR55dsik/IDkCKSFkk6ODNGJqPY3ysVUZqmnWMDSuqFtf7BPWHFa/53znpvVB5XaJ5Z1/6aR5CTIqxPw==",
"optional": true "optional": true
}, },
"@next/swc-linux-arm64-gnu": { "@next/swc-linux-arm64-gnu": {
"version": "12.1.5", "version": "12.1.6",
"resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-12.1.5.tgz", "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-12.1.6.tgz",
"integrity": "sha512-Jq2H68yQ4bLUhR/XQnbw3LDW0GMQn355qx6rU36BthDLeGue7YV7MqNPa8GKvrpPocEMW77nWx/1yI6w6J07gw==", "integrity": "sha512-53QOvX1jBbC2ctnmWHyRhMajGq7QZfl974WYlwclXarVV418X7ed7o/EzGY+YVAEKzIVaAB9JFFWGXn8WWo0gQ==",
"optional": true "optional": true
}, },
"@next/swc-linux-arm64-musl": { "@next/swc-linux-arm64-musl": {
"version": "12.1.5", "version": "12.1.6",
"resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-12.1.5.tgz", "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-12.1.6.tgz",
"integrity": "sha512-KgPjwdbhDqXI7ghNN8V/WAiLquc9Ebe8KBrNNEL0NQr+yd9CyKJ6KqjayVkmX+hbHzbyvbui/5wh/p3CZQ9xcQ==", "integrity": "sha512-CMWAkYqfGdQCS+uuMA1A2UhOfcUYeoqnTW7msLr2RyYAys15pD960hlDfq7QAi8BCAKk0sQ2rjsl0iqMyziohQ==",
"optional": true "optional": true
}, },
"@next/swc-linux-x64-gnu": { "@next/swc-linux-x64-gnu": {
"version": "12.1.5", "version": "12.1.6",
"resolved": "https://registry.npmjs.org/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-12.1.5.tgz", "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-12.1.6.tgz",
"integrity": "sha512-O2ErUTvCJ6DkNTSr9pbu1n3tcqykqE/ebty1rwClzIYdOgpB3T2MfEPP+K7GhUR87wmN/hlihO9ch7qpVFDGKw==", "integrity": "sha512-AC7jE4Fxpn0s3ujngClIDTiEM/CQiB2N2vkcyWWn6734AmGT03Duq6RYtPMymFobDdAtZGFZd5nR95WjPzbZAQ==",
"optional": true "optional": true
}, },
"@next/swc-linux-x64-musl": { "@next/swc-linux-x64-musl": {
"version": "12.1.5", "version": "12.1.6",
"resolved": "https://registry.npmjs.org/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-12.1.5.tgz", "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-12.1.6.tgz",
"integrity": "sha512-1eIlZmlO/VRjxxzUBcVosf54AFU3ltAzHi+BJA+9U/lPxCYIsT+R4uO3QksRzRjKWhVQMRjEnlXyyq5SKJm7BA==", "integrity": "sha512-c9Vjmi0EVk0Kou2qbrynskVarnFwfYIi+wKufR9Ad7/IKKuP6aEhOdZiIIdKsYWRtK2IWRF3h3YmdnEa2WLUag==",
"optional": true "optional": true
}, },
"@next/swc-win32-arm64-msvc": { "@next/swc-win32-arm64-msvc": {
"version": "12.1.5", "version": "12.1.6",
"resolved": "https://registry.npmjs.org/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-12.1.5.tgz", "resolved": "https://registry.npmjs.org/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-12.1.6.tgz",
"integrity": "sha512-oromsfokbEuVb0CBLLE7R9qX3KGXucZpsojLpzUh1QJjuy1QkrPJncwr8xmWQnwgtQ6ecMWXgXPB+qtvizT9Tw==", "integrity": "sha512-3UTOL/5XZSKFelM7qN0it35o3Cegm6LsyuERR3/OoqEExyj3aCk7F025b54/707HTMAnjlvQK3DzLhPu/xxO4g==",
"optional": true "optional": true
}, },
"@next/swc-win32-ia32-msvc": { "@next/swc-win32-ia32-msvc": {
"version": "12.1.5", "version": "12.1.6",
"resolved": "https://registry.npmjs.org/@next/swc-win32-ia32-msvc/-/swc-win32-ia32-msvc-12.1.5.tgz", "resolved": "https://registry.npmjs.org/@next/swc-win32-ia32-msvc/-/swc-win32-ia32-msvc-12.1.6.tgz",
"integrity": "sha512-a/51L5KzBpeZSW9LbekMo3I3Cwul+V+QKwbEIMA+Qwb2qrlcn1L9h3lt8cHqNTFt2y72ce6aTwDTw1lyi5oIRA==", "integrity": "sha512-8ZWoj6nCq6fI1yCzKq6oK0jE6Mxlz4MrEsRyu0TwDztWQWe7rh4XXGLAa2YVPatYcHhMcUL+fQQbqd1MsgaSDA==",
"optional": true "optional": true
}, },
"@next/swc-win32-x64-msvc": { "@next/swc-win32-x64-msvc": {
"version": "12.1.5", "version": "12.1.6",
"resolved": "https://registry.npmjs.org/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-12.1.5.tgz", "resolved": "https://registry.npmjs.org/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-12.1.6.tgz",
"integrity": "sha512-/SoXW1Ntpmpw3AXAzfDRaQidnd8kbZ2oSni8u5z0yw6t4RwJvmdZy1eOaAADRThWKV+2oU90++LSnXJIwBRWYQ==", "integrity": "sha512-4ZEwiRuZEicXhXqmhw3+de8Z4EpOLQj/gp+D9fFWo6ii6W1kBkNNvvEx4A90ugppu+74pT1lIJnOuz3A9oQeJA==",
"optional": true "optional": true
}, },
"@nodelib/fs.scandir": { "@nodelib/fs.scandir": {
@@ -1066,9 +1066,9 @@
"integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==" "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ=="
}, },
"caniuse-lite": { "caniuse-lite": {
"version": "1.0.30001335", "version": "1.0.30001339",
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001335.tgz", "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001339.tgz",
"integrity": "sha512-ddP1Tgm7z2iIxu6QTtbZUv6HJxSaV/PZeSrWFZtbY4JZ69tOeNhBCl3HyRQgeNZKE5AOn1kpV7fhljigy0Ty3w==" "integrity": "sha512-Es8PiVqCe+uXdms0Gu5xP5PF2bxLR7OBp3wUzUnuO7OHzhOfCyg3hdiGWVPVxhiuniOzng+hTc1u3fEQ0TlkSQ=="
}, },
"chalk": { "chalk": {
"version": "2.4.2", "version": "2.4.2",
@@ -2738,9 +2738,9 @@
"dev": true "dev": true
}, },
"nanoid": { "nanoid": {
"version": "3.3.3", "version": "3.3.4",
"resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.3.tgz", "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.4.tgz",
"integrity": "sha512-p1sjXuopFs0xg+fPASzQ28agW1oHD7xDsd9Xkf3T15H3c/cifrFHVwrh74PdoklAPi+i7MdRsE47vm2r6JoB+w==" "integrity": "sha512-MqBkQh/OHTS2egovRtLk45wEyNXwF+cokD+1YPf9u5VfJiRdAiRwB2froX5Co9Rh20xs4siNPm8naNotSD6RBw=="
}, },
"natural-compare": { "natural-compare": {
"version": "1.4.0", "version": "1.4.0",
@@ -2749,26 +2749,26 @@
"dev": true "dev": true
}, },
"next": { "next": {
"version": "12.1.5", "version": "12.1.6",
"resolved": "https://registry.npmjs.org/next/-/next-12.1.5.tgz", "resolved": "https://registry.npmjs.org/next/-/next-12.1.6.tgz",
"integrity": "sha512-YGHDpyfgCfnT5GZObsKepmRnne7Kzp7nGrac07dikhutWQug7hHg85/+sPJ4ZW5Q2pDkb+n0FnmLkmd44htIJQ==", "integrity": "sha512-cebwKxL3/DhNKfg9tPZDQmbRKjueqykHHbgaoG4VBRH3AHQJ2HO0dbKFiS1hPhe1/qgc2d/hFeadsbPicmLD+A==",
"requires": { "requires": {
"@next/env": "12.1.5", "@next/env": "12.1.6",
"@next/swc-android-arm-eabi": "12.1.5", "@next/swc-android-arm-eabi": "12.1.6",
"@next/swc-android-arm64": "12.1.5", "@next/swc-android-arm64": "12.1.6",
"@next/swc-darwin-arm64": "12.1.5", "@next/swc-darwin-arm64": "12.1.6",
"@next/swc-darwin-x64": "12.1.5", "@next/swc-darwin-x64": "12.1.6",
"@next/swc-linux-arm-gnueabihf": "12.1.5", "@next/swc-linux-arm-gnueabihf": "12.1.6",
"@next/swc-linux-arm64-gnu": "12.1.5", "@next/swc-linux-arm64-gnu": "12.1.6",
"@next/swc-linux-arm64-musl": "12.1.5", "@next/swc-linux-arm64-musl": "12.1.6",
"@next/swc-linux-x64-gnu": "12.1.5", "@next/swc-linux-x64-gnu": "12.1.6",
"@next/swc-linux-x64-musl": "12.1.5", "@next/swc-linux-x64-musl": "12.1.6",
"@next/swc-win32-arm64-msvc": "12.1.5", "@next/swc-win32-arm64-msvc": "12.1.6",
"@next/swc-win32-ia32-msvc": "12.1.5", "@next/swc-win32-ia32-msvc": "12.1.6",
"@next/swc-win32-x64-msvc": "12.1.5", "@next/swc-win32-x64-msvc": "12.1.6",
"caniuse-lite": "^1.0.30001283", "caniuse-lite": "^1.0.30001332",
"postcss": "8.4.5", "postcss": "8.4.5",
"styled-jsx": "5.0.1" "styled-jsx": "5.0.2"
} }
}, },
"next-i18next": { "next-i18next": {
@@ -3512,9 +3512,9 @@
} }
}, },
"styled-jsx": { "styled-jsx": {
"version": "5.0.1", "version": "5.0.2",
"resolved": "https://registry.npmjs.org/styled-jsx/-/styled-jsx-5.0.1.tgz", "resolved": "https://registry.npmjs.org/styled-jsx/-/styled-jsx-5.0.2.tgz",
"integrity": "sha512-+PIZ/6Uk40mphiQJJI1202b+/dYeTVd9ZnMPR80pgiWbjIwvN2zIp4r9et0BgqBuShh48I0gttPlAXA7WVvBxw==" "integrity": "sha512-LqPQrbBh3egD57NBcHET4qcgshPks+yblyhPlH2GY8oaDgKs8SK4C3dBh3oSJjgzJ3G5t1SYEZGHkP+QEpX9EQ=="
}, },
"styled-system": { "styled-system": {
"version": "5.1.5", "version": "5.1.5",
+1 -1
View File
@@ -7,7 +7,7 @@
"@mdi/js": "^6.5.95", "@mdi/js": "^6.5.95",
"@mdi/react": "^1.5.0", "@mdi/react": "^1.5.0",
"date-fns": "^2.27.0", "date-fns": "^2.27.0",
"next": "^12.1.5", "next": "^12.1.6",
"next-i18next": "^10.1.0", "next-i18next": "^10.1.0",
"nprogress": "^0.2.0", "nprogress": "^0.2.0",
"open-color": "^1.9.1", "open-color": "^1.9.1",