-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathastro.config.mjs
More file actions
54 lines (53 loc) · 1.24 KB
/
Copy pathastro.config.mjs
File metadata and controls
54 lines (53 loc) · 1.24 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
import sitemap from "@astrojs/sitemap";
import alpinejs from "@astrojs/alpinejs";
import tailwindcss from "@tailwindcss/vite";
import { defineConfig } from "astro/config";
import react from "@astrojs/react";
console.log("Loading app with NODE_ENV: ", process.env.NODE_ENV);
// https://astro.build/config
export default defineConfig({
devOptions: {
devToolbar: false,
},
redirects: {
"/tools/home": "/tools",
},
markdown: {
shikiConfig: {
themes: {
light: "poimandres",
},
},
},
build: {
inlineStylesheets: "always",
},
site: "https://oxbowui.com",
integrations: [sitemap(), alpinejs({ entrypoint: "src/alpine" }), react()],
output: "static",
vite: {
plugins: [tailwindcss()],
optimizeDeps: {
// Prevent intermittent missing prebundle chunks in dev
// (observed as missing chunk-*.js for these deps).
exclude: [
"alpinejs",
"outdent",
"@alpinejs/ui",
"@alpinejs/focus",
"@alpinejs/intersect",
"@ryangjchandler/alpine-clipboard",
"shiki",
],
},
ssr: {
external: [
"node:fs",
"node:fs/promises",
"node:path",
"node:url",
"node:crypto",
],
},
},
});