about summary refs log tree commit diff stats
path: root/internal/server/server.go
diff options
context:
space:
mode:
authorAlan Pearce2024-06-26 18:45:56 +0200
committerAlan Pearce2024-06-26 18:45:56 +0200
commit767caaab43143fd5e22bbea044f1aa83ebb13517 (patch)
tree5d2b23060de8fa5dbf561317f97e8a874cbaf190 /internal/server/server.go
parentaa6d63c3539f9243d1b325f3585faddcf7d01070 (diff)
downloadwebsite-767caaab43143fd5e22bbea044f1aa83ebb13517.tar.lz
website-767caaab43143fd5e22bbea044f1aa83ebb13517.tar.zst
website-767caaab43143fd5e22bbea044f1aa83ebb13517.zip
fix empty initial build in dev
Diffstat (limited to 'internal/server/server.go')
-rw-r--r--internal/server/server.go7
1 files changed, 0 insertions, 7 deletions
diff --git a/internal/server/server.go b/internal/server/server.go
index 54c4569..05b1d2a 100644
--- a/internal/server/server.go
+++ b/internal/server/server.go
@@ -103,13 +103,6 @@ func New(runtimeConfig *Config) (*Server, error) {
 			return nil, err
 		}
 		runtimeConfig.Root = "website"
-	} else {
-		tmpdir, err := os.MkdirTemp("", "website")
-		if err != nil {
-			return nil, err
-		}
-		defer os.RemoveAll(tmpdir)
-		runtimeConfig.Root = tmpdir
 	}
 
 	config, err := cfg.GetConfig()