feat: Initial commit

This commit is contained in:
2025-02-25 12:01:47 -05:00
parent 3c0c100e50
commit a289075e75
2557 changed files with 379222 additions and 47 deletions

View File

@@ -0,0 +1,17 @@
import Foundation
import Vapor
#if DEBUG
struct BrowserSyncHandler: LifecycleHandler {
func didBoot(_ application: Application) throws {
let process = Process()
process.executableURL = URL(filePath: "/bin/sh")
process.arguments = ["-c", "browser-sync reload"]
do {
try process.run()
} catch {
print("Could not auto-reload: \(error)")
}
}
}
#endif