-
Notifications
You must be signed in to change notification settings - Fork 68
fix(ct): run vite server once on init #1166
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
9071824 to
d9dfdec
Compare
commit: |
d9dfdec to
f50861f
Compare
|
|
||
| await this._server.listen(); | ||
|
|
||
| this._useBaseUrlFromVite(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
moved here from src/runner/browser-env/index.ts (which is not needed anymore)
| return this._server?.resolvedUrls!.local[0]; | ||
| } | ||
|
|
||
| private _useBaseUrlFromVite(): void { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also moved from src/runner/browser-env/index.ts
|
|
||
| const RunnerClass = isRunInNodeJsEnv(this._config) | ||
| ? await import("./runner").then(m => m.MainRunner) | ||
| : await import("./runner/browser-env").then(m => m.MainRunner); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
browser-env runner is not needed anymore, I removed it
| @@ -1,51 +0,0 @@ | |||
| import { ViteServer } from "./vite/server"; | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is not needed anymore because now I run vite server on init
No description provided.