diff --git a/custom.d.ts b/custom.d.ts index 0154cc79..4fbe6022 100644 --- a/custom.d.ts +++ b/custom.d.ts @@ -13,7 +13,7 @@ declare module '*.css' { export default content; } -declare var __DEV__: boolean; +declare var __REDOC_DEV__: boolean; declare var __REDOC_VERSION__: string; declare var __REDOC_REVISION__: string; diff --git a/demo/ssr/index.ts b/demo/ssr/index.ts index 5baeb48e..836af8a4 100644 --- a/demo/ssr/index.ts +++ b/demo/ssr/index.ts @@ -18,7 +18,7 @@ const server = http.createServer(async (request, response) => { fs.createReadStream('bundles/redoc.standalone.js', 'utf8').pipe(response); } else if (request.url === '/') { const spec = yaml.load(readFileSync(resolve(__dirname, '../openapi.yaml'))); - let store = await createStore(spec, '', { nativeScrollbars: true }); + let store = await createStore(spec, 'path/to/spec.yaml'); const sheet = new ServerStyleSheet(); @@ -37,26 +37,21 @@ const server = http.createServer(async (request, response) => { margin: 0; } - - ${css}
-