2023-10-30 16:53:53 +00:00
|
|
|
import { defineConfig } from "astro/config"
|
|
|
|
import * as fs from "node:fs"
|
2023-10-24 04:33:04 +00:00
|
|
|
|
2023-10-30 16:53:53 +00:00
|
|
|
import react from "@astrojs/react"
|
|
|
|
import tailwind from "@astrojs/tailwind"
|
|
|
|
import optimizer from "vite-plugin-optimizer"
|
2023-10-24 04:33:04 +00:00
|
|
|
|
|
|
|
export default defineConfig({
|
2023-10-30 16:53:53 +00:00
|
|
|
integrations: [react(), tailwind({ applyBaseStyles: false })],
|
|
|
|
vite: {
|
|
|
|
server: {
|
|
|
|
https: {
|
|
|
|
cert: fs.readFileSync("./.local-ssl/localhost.pem"),
|
|
|
|
key: fs.readFileSync("./.local-ssl/localhost-key.pem")
|
|
|
|
},
|
|
|
|
},
|
|
|
|
build: {
|
|
|
|
minify: false
|
|
|
|
},
|
|
|
|
resolve: {
|
|
|
|
dedupe: ["@lumeweb/libportal", "@lumeweb/libweb", "@lumeweb/libkernel"]
|
|
|
|
},
|
|
|
|
plugins: [
|
|
|
|
optimizer({
|
|
|
|
"node-fetch":
|
|
|
|
"const e = undefined; export default e;export {e as Response, e as FormData, e as Blob};"
|
|
|
|
})
|
|
|
|
]
|
|
|
|
}
|
2023-10-24 04:33:04 +00:00
|
|
|
})
|