tangled
alpha
login
or
join now
margin.at
/
margin
Write on the margins of the internet. Powered by the AT Protocol.
margin.at
extension
web
atproto
comments
81
fork
atom
overview
issues
3
pulls
1
pipelines
fix
scanash.com
2 weeks ago
d3bdf09a
c7c2b4a5
+6
-25
2 changed files
expand all
collapse all
unified
split
Dockerfile
web
astro.config.mjs
+2
Dockerfile
···
27
27
28
28
COPY --from=frontend-builder /app/web/dist ./dist
29
29
30
30
+
RUN npm install @resvg/resvg-js@2.6.2 --no-save
31
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
12
+
ssr: {
13
13
+
noExternal: true,
14
14
+
external: ["@resvg/resvg-js"],
15
15
+
},
12
16
build: {
13
17
chunkSizeWarningLimit: 1000,
14
14
-
rollupOptions: {
15
15
-
output: {
16
16
-
manualChunks(id) {
17
17
-
if (id.includes("node_modules")) {
18
18
-
if (
19
19
-
id.includes("react") ||
20
20
-
id.includes("react-dom") ||
21
21
-
id.includes("react-router-dom")
22
22
-
) {
23
23
-
return "vendor-react";
24
24
-
}
25
25
-
if (id.includes("lucide-react")) {
26
26
-
return "vendor-lucide";
27
27
-
}
28
28
-
if (id.includes("emoji-picker-react")) {
29
29
-
return "vendor-emoji-picker";
30
30
-
}
31
31
-
if (id.includes("date-fns")) {
32
32
-
return "vendor-date-fns";
33
33
-
}
34
34
-
return "vendor";
35
35
-
}
36
36
-
},
37
37
-
},
38
38
-
},
39
18
},
40
19
server: {
41
20
proxy: {