-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathastro.config.mjs
More file actions
40 lines (39 loc) · 939 Bytes
/
astro.config.mjs
File metadata and controls
40 lines (39 loc) · 939 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import { defineConfig } from "astro/config";
import tailwind from "@astrojs/tailwind";
import react from "@astrojs/react";
export default defineConfig({
integrations: [
tailwind(),
react({
include: ["**/react/*", "**/*.jsx", "**/*.tsx"],
experimentalReactChildren: true,
}),
],
output: "static",
site: "https://your-vercel-domain.vercel.app", // Update this with your actual Vercel domain
build: {
inlineStylesheets: "auto",
},
vite: {
build: {
cssCodeSplit: true,
assetsInlineLimit: 0,
rollupOptions: {
output: {
manualChunks: {
react: ["react", "react-dom"],
framer: ["framer-motion"],
},
},
},
},
preview: {
host: "0.0.0.0",
port: process.env.PORT ? parseInt(process.env.PORT) : 4321,
allowedHosts: ["all"],
},
ssr: {
noExternal: ["framer-motion"],
},
},
});