Skip to content

Commit

Permalink
refactor(preview): export preview server
Browse files Browse the repository at this point in the history
  • Loading branch information
fu050409 committed Sep 14, 2024
1 parent 5852182 commit 6e591e3
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion packages/core/src/server/preview.ts
Original file line number Diff line number Diff line change
@@ -1 +1,13 @@
export {};
import { UserConfig, UserPreviewServerConfig } from '../config/types.js';
import { httpServer as HttpServer } from './http.js';

class PreviewServer extends HttpServer {
previewOptions: UserPreviewServerConfig;

constructor(readonly inlineConfig: UserConfig) {
super();
this.previewOptions = inlineConfig.preview;
}
}

export { PreviewServer };

0 comments on commit 6e591e3

Please sign in to comment.