Skip to content

Commit 39ffa30

Browse files
committed
fix: ext mod for sqlite3
1 parent 7cc0fd4 commit 39ffa30

2 files changed

Lines changed: 20 additions & 1 deletion

File tree

frontend/astro.config.mjs

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,24 @@ export default defineConfig({
4444
compress: true,
4545
}
4646
},
47+
// Ensure native/node-only deps are not bundled for static build
48+
ssr: {
49+
external: [
50+
'better-sqlite3'
51+
],
52+
noExternal: []
53+
},
54+
optimizeDeps: {
55+
exclude: [
56+
'better-sqlite3'
57+
]
58+
},
59+
build: {
60+
rollupOptions: {
61+
external: [
62+
'better-sqlite3'
63+
]
64+
}
65+
}
4766
},
4867
});

frontend/src/pages/svg_icons/_SvgIcons.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ const {
119119
</div>
120120
</div>
121121

122-
<!-- Pagination -->
122+
<!-- Pagination. -->
123123
<Pagination
124124
currentPage={currentPage}
125125
totalPages={totalPages}

0 commit comments

Comments
 (0)