Skip to content

Commit 867a1c5

Browse files
fix: update static asset path to use ROOT_DIR
1 parent ad59067 commit 867a1c5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ func main() {
1919
e.Use(middleware.GzipWithConfig(middleware.GzipConfig{
2020
Level: 5,
2121
}))
22-
e.Static(path.Join("ROOT_DIR", "assets"), "assets")
22+
e.Static("/assets", path.Join(os.Getenv("ROOT_DIR"), "assets"))
2323

2424
handlers.Init()
2525

0 commit comments

Comments
 (0)