fix: ssr TypeError: Cannot read property 'indexOf' of undefined
See this problem in issue: https://github.com/docsifyjs/docsify/issues/704
Summary
What kind of change does this PR introduce?
For any code change,
- [ ] Related documentation has been updated if needed
- [ ] Related tests have been updated or tests have been added
Does this PR introduce a breaking change? (check one)
- [ ] Yes
- [x] No
If yes, please describe the impact and migration path for existing applications:
Related issue, if any:
Tested in the following browsers:
- [ ] Chrome
- [ ] Firefox
- [ ] Safari
- [ ] Edge
- [ ] IE
This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.
🔍 Inspect: https://vercel.com/docsify-core/docsify-preview/6x5nWFyDtaarQUUPrdaQFT1BV7u3
✅ Preview: https://docsify-preview-git-fork-dysdf-fix-ssr-error-docsify-core.vercel.app
This pull request is automatically built and testable in CodeSandbox.
To see build info of the built libraries, click here or the icon next to each commit SHA.
Latest deployment of this branch, based on commit 6428c84a418750974800ae73656d2969f5089b76:
| Sandbox | Source |
|---|---|
| docsify-template | Configuration |
@trusktr @Koooooo-7 May I ask what is the status of this PR? Since it resolves a major issue that blocks the usage of SSR, I really hope it could be merged soon.
@xiao99xiao Cause the SSR refactor has not set in place yet, it may be late to merge.
@trusktr do u think we could merge it as a patch for current SSR solution?
cc @docsifyjs/reviewers
Yeah, this is already fixed in my work. SSR is working, but not all things work yet. Namely we still need some special handling for plugins. Another issue I have is I haven't installed a VM for testing, the tests don't pass in my native OS. I will circle back again soon, i haven't forgotten!
The latest updates on your projects. Learn more about Vercel for Git ↗︎
| Name | Status | Preview | Updated |
|---|---|---|---|
| docsify-preview | ✅ Ready (Inspect) | Visit Preview | Aug 23, 2022 at 7:27AM (UTC) |
see #2105