Fix bug that causes container to not start due to path issues location icons

This commit is contained in:
simojenki
2021-08-18 14:17:13 +10:00
parent c8509a23d4
commit 06db0c2088

View File

@@ -34,7 +34,7 @@ export const BONOB_ACCESS_TOKEN_HEADER = "bonob-access-token";
const icon = (name: string) =>
fs
.readFileSync(path.resolve(__dirname, "..", "web", "icons", name))
.readFileSync(path.resolve(".", "web", "icons", name))
.toString();
export type Icon = { svg: string; size: number };