mirror of
https://github.com/sonr-io/sonr.git
synced 2026-08-02 17:31:39 +00:00
* Squash merge develop into master * feat: add automated production release workflow * feat: add Gitflow workflow for syncing branches * ci: update workflow runner to latest ubuntu version * feat: enable buf.build publishing on master and develop branches --------- Co-authored-by: Prad Nukala <prad@sonr.io>
21 lines
392 B
Go
21 lines
392 B
Go
package vfs
|
|
|
|
import (
|
|
"github.com/ipfs/boxo/files"
|
|
)
|
|
|
|
var (
|
|
kServiceWorkerFileName = "server/sw.js"
|
|
kVaultFileName = "server/vault.wasm"
|
|
kIndexFileName = "index.html"
|
|
)
|
|
|
|
func AssembleDirectory() files.Directory {
|
|
fileMap := map[string]files.Node{
|
|
kVaultFileName: DWNWasmFile(),
|
|
kServiceWorkerFileName: SWJSFile(),
|
|
}
|
|
|
|
return files.NewMapDirectory(fileMap)
|
|
}
|