Skip to content

Commit 898b2aa

Browse files
committed
Revert astro.config.ts to version from main
1 parent 57608db commit 898b2aa

File tree

1 file changed

+6
-18
lines changed

1 file changed

+6
-18
lines changed

astro.config.ts

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -109,30 +109,18 @@ export default defineConfig({
109109
adapter: vercel(),
110110
vite: {
111111
plugins: [yaml()],
112-
resolve: {
113-
// Ensure only ONE copy of these ends up in any chunk
114-
dedupe: ["react", "react-dom", "@aptos-labs/ts-sdk", "@aptos-labs/wallet-adapter-react"],
115-
},
116112
build: {
117113
target: "esnext", // Use latest ES features, no transpilation for modern browsers
118114
// Optimize CSS delivery
119115
cssMinify: true,
120116
// Increase the threshold for inlining assets to reduce render-blocking CSS
121117
assetsInlineLimit: 20000, // Inline CSS files up to 20KB to eliminate render-blocking
122-
// ⬇️ Split vendor families so duplicate minified helpers don't share a chunk
123-
rollupOptions: {
124-
output: {
125-
manualChunks(id) {
126-
if (!id.includes("node_modules")) return
127-
if (id.includes("@aptos-labs")) return "aptos"
128-
if (id.includes("@aptos-connect") || id.includes("@identity-connect")) return "aptos-ic"
129-
if (id.includes("@solana")) return "solana"
130-
if (id.includes("@keystonehq") || id.includes("react-qr-reader") || id.includes("qrcode.react")) {
131-
return "keystone-legacy"
132-
}
133-
},
134-
},
135-
},
118+
// Removed manual chunking to prevent serverless function bloat
119+
// rollupOptions: {
120+
// output: {
121+
// manualChunks: ...
122+
// }
123+
// },
136124
},
137125
esbuild: {
138126
target: "esnext", // Match build target for consistency

0 commit comments

Comments
 (0)