This repository has been archived by the owner on Jan 10, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathastro.config.ts
83 lines (69 loc) · 2 KB
/
astro.config.ts
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
//### Framework ###//
import {AstroPortal} from "astro-portal"
//### NPM ###//
import {defineConfig as Configuration} from "astro/config"
import Rehype_MathJax from "rehype-mathjax/svg.js"
import Remark_Math from "remark-math"
import PersistOptimizations from "vite-plugin-optimize-persist"
import Manage_PackageJSON from "vite-plugin-package-config"
//### NPM.AstroRenderers ###//
//import Lit from "@astrojs/lit" /* [ISSUE.1] restore when fixed */
//import Preact from "@astrojs/preact" /* [ISSUE.2] restore when fixed */
import React from "@astrojs/react"
import Solid from "@astrojs/solid-js"
import Svelte from "@astrojs/svelte"
import Vue from "@astrojs/vue"
//####################################################################################################################//
//##> Exports ##//
//####################################################################################################################//
export default Configuration({
root: "./",
publicDir: "./public",
outDir: "./dist",
srcDir: "./src/",
server: {
host: "0.0.0.0",
port: 3000,
},
integrations: [
//Lit (), /* [ISSUE.1] restore when fixed */
//Preact(), /* [ISSUE.2] restore when fixed */
React (),
Solid (),
Svelte(),
Vue({
template: {
compilerOptions: {
isCustomElement: ((tag) => tag.includes("-")),
},
},
}),
AstroPortal(),
],
markdown: {
rehypePlugins: [
Rehype_MathJax,
],
remarkPlugins: [
Remark_Math,
],
shikiConfig: {
theme: "nord",
},
},
vite: {
server: {
strictPort: true,
},
build: {
commonjsOptions: {
transformMixedEsModules: true,
esmExternals: true,
},
},
plugins: [
Manage_PackageJSON({packageJsonPath:"./.vite/OptimizeDeps.json"}),
PersistOptimizations(),
],
},
})