File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,9 @@ import { defineConfig } from "@solidjs/start/config";
22
33import { createWithSolidBase , defineTheme } from "@kobalte/solidbase/config" ;
44
5+ import type { ViteDevServer } from "vite" ;
6+ import type { IncomingMessage , ServerResponse } from "node:http" ;
7+
58import tree from "./.solid/tree" ;
69import entries from "./.solid/flat-entries" ;
710import solidstartEntries from "./.solid/solid-start-flat-entries" ;
@@ -168,8 +171,8 @@ function serveRawMarkdown() {
168171
169172 return {
170173 name : "serve-raw-markdown" ,
171- configureServer ( server : any ) {
172- server . middlewares . use ( ( req : any , res : any , next : any ) => {
174+ configureServer ( server : ViteDevServer ) {
175+ server . middlewares . use ( ( req : IncomingMessage , res : ServerResponse , next : ( ) => void ) => {
173176 if ( ! req . url ?. endsWith ( ".md" ) ) return next ( ) ;
174177 const mdxPath = join ( srcDir , req . url . replace ( / \. m d $ / , ".mdx" ) ) ;
175178 try {
You can’t perform that action at this time.
0 commit comments