Config: Update manifest.json location for generating hash #425 #1351

This commit is contained in:
Michael Mayer 2021-07-08 18:31:06 +02:00
parent caf7920672
commit 4a2e4fc99f

View file

@ -197,7 +197,7 @@ func (c *Config) PublicConfig() ClientConfig {
Colors: colors.All.List(),
JSHash: fs.Checksum(c.BuildPath() + "/app.js"),
CSSHash: fs.Checksum(c.BuildPath() + "/app.css"),
ManifestHash: fs.Checksum(c.StaticPath() + "/manifest.json"),
ManifestHash: fs.Checksum(c.TemplatesPath() + "/manifest.json"),
Clip: txt.ClipDefault,
PreviewToken: "public",
DownloadToken: "public",
@ -261,7 +261,7 @@ func (c *Config) GuestConfig() ClientConfig {
PreviewToken: c.PreviewToken(),
JSHash: fs.Checksum(c.BuildPath() + "/share.js"),
CSSHash: fs.Checksum(c.BuildPath() + "/share.css"),
ManifestHash: fs.Checksum(c.StaticPath() + "/manifest.json"),
ManifestHash: fs.Checksum(c.TemplatesPath() + "/manifest.json"),
Clip: txt.ClipDefault,
}
@ -316,7 +316,7 @@ func (c *Config) UserConfig() ClientConfig {
PreviewToken: c.PreviewToken(),
JSHash: fs.Checksum(c.BuildPath() + "/app.js"),
CSSHash: fs.Checksum(c.BuildPath() + "/app.css"),
ManifestHash: fs.Checksum(c.StaticPath() + "/manifest.json"),
ManifestHash: fs.Checksum(c.TemplatesPath() + "/manifest.json"),
Clip: txt.ClipDefault,
Server: NewRuntimeInfo(),
}