Skip to content

Build your personal knowledge base with Trilium Notes

fix(server): render share theme on prod

Elian Doran4216a71a8520
diff --git a/apps/server/package.json b/apps/server/package.json
index 8ce5f919f7..f321e01e28 100644
--- a/apps/server/package.json
+++ b/apps/server/package.json
@@ -303,6 +303,11 @@
"input": "apps/server/src/assets",
"output": "assets"
},
+ {
+ "glob": "**/*",
+ "input": "packages/share-theme/src/templates",
+ "output": "share-theme/templates"
+ },
{
"glob": "**/*",
"input": "apps/client/dist",
diff --git a/packages/share-theme/src/templates/page.ejs b/packages/share-theme/src/templates/page.ejs
index 40c17f12fb..a55ac7cc71 100644
--- a/packages/share-theme/src/templates/page.ejs
+++ b/packages/share-theme/src/templates/page.ejs
@@ -7,7 +7,7 @@
<link rel="shortcut icon" href="<% if (note.hasRelation("shareFavicon")) { %>api/notes/<%= note.getRelation("shareFavicon").value %>/download<% } else { %>../favicon.ico<% } %>">
<script src="<%= appPath %>/share.js" type="module"></script>
<% if (!isDev && !note.isLabelTruthy("shareOmitDefaultCss")) { %>
- <link href="<%= assetPath %>/stylesheets/share.css" rel="stylesheet">
+ <link href="<%= assetPath %>/src/share.css" rel="stylesheet">
<% } %>
<% for (const cssRelation of note.getRelations("shareCss")) { %>