mirror of
https://github.com/facebook/docusaurus.git
synced 2025-12-31 15:42:48 +00:00
add more redirect tests to d2 site config
This commit is contained in:
parent
812daa8af5
commit
77c7ac0ddb
|
|
@ -29,15 +29,29 @@ module.exports = {
|
|||
{
|
||||
to: '/',
|
||||
from: [
|
||||
'/plugin-client-redirects/test1',
|
||||
'/plugin-client-redirects/test2',
|
||||
'/plugin-client-redirects-tests/toHome1',
|
||||
'/plugin-client-redirects-tests/toHome2',
|
||||
],
|
||||
},
|
||||
{
|
||||
to: '/docs',
|
||||
from: '/plugin-client-redirects/test3',
|
||||
from: '/plugin-client-redirects-tests/toDocs1',
|
||||
},
|
||||
{
|
||||
to: '/docs',
|
||||
from: '/plugin-client-redirects-tests/toDocs2',
|
||||
},
|
||||
],
|
||||
createRedirects: function (existingPath) {
|
||||
if (existingPath === '/') {
|
||||
return [
|
||||
[
|
||||
'/plugin-client-redirects-tests/toHome3',
|
||||
'/plugin-client-redirects-tests/toHome4',
|
||||
],
|
||||
];
|
||||
}
|
||||
},
|
||||
},
|
||||
],
|
||||
[
|
||||
|
|
|
|||
Loading…
Reference in New Issue