File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments