Skip to content

Commit

Permalink
fix: embed all files of dist
Browse files Browse the repository at this point in the history
  • Loading branch information
xhofe committed Feb 3, 2024
1 parent 812f58a commit da5e355
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion public/public.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ package public

import "embed"

//go:embed dist
//go:embed all:dist
var Public embed.FS
2 changes: 1 addition & 1 deletion server/static/static.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package static
import (
"errors"
"fmt"
"github.com/alist-org/alist/v3/public"
"io"
"io/fs"
"net/http"
Expand All @@ -13,6 +12,7 @@ import (
"github.com/alist-org/alist/v3/internal/conf"
"github.com/alist-org/alist/v3/internal/setting"
"github.com/alist-org/alist/v3/pkg/utils"
"github.com/alist-org/alist/v3/public"
"github.com/gin-gonic/gin"
)

Expand Down

0 comments on commit da5e355

Please sign in to comment.