|
|
@ -1,4 +1,3 @@
|
|
|
|
import dns from 'dns'
|
|
|
|
|
|
|
|
import { createServer as createViteServer, type ServerOptions } from 'vite'
|
|
|
|
import { createServer as createViteServer, type ServerOptions } from 'vite'
|
|
|
|
import { resolveConfig } from './config'
|
|
|
|
import { resolveConfig } from './config'
|
|
|
|
import { createVitePressPlugin } from './plugin'
|
|
|
|
import { createVitePressPlugin } from './plugin'
|
|
|
@ -15,8 +14,6 @@ export async function createServer(
|
|
|
|
delete serverOptions.base
|
|
|
|
delete serverOptions.base
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
dns.setDefaultResultOrder('verbatim')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return createViteServer({
|
|
|
|
return createViteServer({
|
|
|
|
root: config.srcDir,
|
|
|
|
root: config.srcDir,
|
|
|
|
base: config.site.base,
|
|
|
|
base: config.site.base,
|
|
|
|