mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-31 23:40:39 +02:00
add more redirect tests to d2 site config
This commit is contained in:
parent
812daa8af5
commit
77c7ac0ddb
1 changed files with 17 additions and 3 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue