fix(server): render share theme on prod

This commit is contained in:
Elian Doran 2025-06-09 21:58:56 +03:00
parent 64e857362f
commit 4216a71a85
No known key found for this signature in database
2 changed files with 6 additions and 1 deletions

View File

@ -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",

View File

@ -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")) { %>