Skip to content

The SSR example failed #1413

Closed as not planned
Closed as not planned

Description

@yl-yue

Activity

  1. sy-records commented on Nov 1, 2020

    @sy-records
    Member

    Thanks for your feedback, we'll try to fix it in the next version.

  2. trusktr commented on Nov 1, 2020

    @trusktr
    Member

    There is a PR in progress for this: #1227

  3. yl-yue commented on May 9, 2021

    @yl-yue
    Author

    After starting with npm start, the access reports an error:

    [root@iZ8vbl0q91x1xZ ssr]# npm start
    
    > docsify-ssr@1.0.0 start /root/ssr
    > docsify start . -c ssr.config.js
    
    
    [SSR] Serving . now.
    Listening at http://localhost:4000
    
    TypeError: Cannot read property 'indexOf' of undefined
        at AbstractHistory.parse (/root/ssr/node_modules/docsify-server-renderer/build.js:297:27)
        at Compiler.compile (/root/ssr/node_modules/docsify-server-renderer/build.js:857:37)
        at Renderer.<anonymous> (/root/ssr/node_modules/docsify-server-renderer/build.js:1431:28)
        at Generator.next (<anonymous>)
        at c (/root/ssr/node_modules/docsify-server-renderer/build.js:16:99)
        at processTicksAndRejections (internal/process/task_queues.js:93:5)
    

    The configuration is based on docsify-ssr-demo, with only the basePath property changed

    module.exports = {
      template: './ssr.html',
      maxAge: 60 * 60 * 1000,
      config: {
        basePath: 'https://ylyue.cn/',
        auto2top: true,
        coverpage: true,
        executeScript: true,
        loadSidebar: true,
        loadNavbar: true,
        mergeNavbar: true,
        maxLevel: 4,
        subMaxLevel: 2,
        name: 'docsify'
      }
    }
  4. sy-records commented on Mar 6, 2024

    @sy-records
    Member

    deleted SSR. see #2105

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    WIPbugconfirmed as a bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions