mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-28 08:27:03 +02:00
fix(v2): make client-redirect-plugin not baseUrl sensitive (#3010)
* feat(v2): use relative routes path in postBuild hook * feat(v2): use relativeRoutesPath in other methods and modify tests * fix(v2): fix D2 client redirects and tests * feat(v2): add tests for relativeRoutesPaths * fix(v2): fix some typos in configValidation * fix(v2): fix an eslint warning and restart github action * refactor(v2): create a removePrefix method * refactor(v2): inline unnecessary method
This commit is contained in:
parent
b58a53eae8
commit
2e055f4ae2
10 changed files with 81 additions and 71 deletions
|
@ -8,9 +8,9 @@
|
|||
const versions = require('./versions.json');
|
||||
|
||||
const allDocHomesPaths = [
|
||||
'/docs',
|
||||
'/docs/next',
|
||||
...versions.slice(1).map((version) => `/docs/${version}`),
|
||||
'/docs/',
|
||||
'/docs/next/',
|
||||
...versions.slice(1).map((version) => `/docs/${version}/`),
|
||||
];
|
||||
|
||||
module.exports = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue