Skip to content

Commit fbfac00

Browse files
committed
Cleanup dev logs
1 parent 080756c commit fbfac00

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

Plugins/VercelPackager/VercelOutput.swift

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,15 @@ public struct VercelOutput {
7676
public func dev() async throws {
7777
print("")
7878
print("-------------------------------------------------------------------------")
79-
print("Starting dev server: http://localhost:\(port)")
79+
print("Building application")
8080
print("-------------------------------------------------------------------------")
8181
print("")
8282

83+
try Shell.execute(
84+
executable: context.tool(named: "swift").path,
85+
arguments: ["build", "--package-path", projectDirectory.string]
86+
)
87+
8388
Task {
8489
var env = localEnvironment()
8590
env["LOCAL_LAMBDA_SERVER_ENABLED"] = "true"
@@ -102,6 +107,14 @@ public struct VercelOutput {
102107
)
103108
}
104109

110+
try await Task.sleep(nanoseconds: 1_000_000_000)
111+
112+
print("")
113+
print("-------------------------------------------------------------------------")
114+
print("Running dev server: http://localhost:\(port)")
115+
print("-------------------------------------------------------------------------")
116+
print("")
117+
105118
while true {
106119
try await Task.sleep(nanoseconds: 1_000_000_000_000)
107120
}

0 commit comments

Comments
 (0)