Write on the margins of the internet. Powered by the AT Protocol. margin.at
extension web atproto comments

fix

+6 -25
+2
Dockerfile
··· 27 27 28 28 COPY --from=frontend-builder /app/web/dist ./dist 29 29 30 + RUN npm install @resvg/resvg-js@2.6.2 --no-save 31 + 30 32 ENV PORT=8080 31 33 ENV API_PORT=8081 32 34 ENV DATABASE_URL=margin.db
+4 -25
web/astro.config.mjs
··· 9 9 adapter: node({ mode: "standalone" }), 10 10 integrations: [react(), tailwind()], 11 11 vite: { 12 + ssr: { 13 + noExternal: true, 14 + external: ["@resvg/resvg-js"], 15 + }, 12 16 build: { 13 17 chunkSizeWarningLimit: 1000, 14 - rollupOptions: { 15 - output: { 16 - manualChunks(id) { 17 - if (id.includes("node_modules")) { 18 - if ( 19 - id.includes("react") || 20 - id.includes("react-dom") || 21 - id.includes("react-router-dom") 22 - ) { 23 - return "vendor-react"; 24 - } 25 - if (id.includes("lucide-react")) { 26 - return "vendor-lucide"; 27 - } 28 - if (id.includes("emoji-picker-react")) { 29 - return "vendor-emoji-picker"; 30 - } 31 - if (id.includes("date-fns")) { 32 - return "vendor-date-fns"; 33 - } 34 - return "vendor"; 35 - } 36 - }, 37 - }, 38 - }, 39 18 }, 40 19 server: { 41 20 proxy: {