remove react

This commit is contained in:
darwinx64 2025-04-20 23:52:17 -05:00
parent 98412adab9
commit 0bb40ff89f
No known key found for this signature in database
29 changed files with 430 additions and 1730 deletions

View file

@ -1,25 +1,3 @@
import { defineConfig } from 'astro/config';
import node from "@astrojs/node";
import cloudflare from "@astrojs/cloudflare";
import react from "@astrojs/react";
// https://astro.build/config
export default defineConfig({
output: "server",
adapter: cloudflare(),
integrations: [react()],
vite: {
server: {
allowedHosts: ["nin0-pc.buri-roach.ts.net"]
},
resolve: {
// Use react-dom/server.edge instead of react-dom/server.browser for React 19.
// Without this, MessageChannel from node:worker_threads needs to be polyfilled.
alias: import.meta.env.PROD && {
"react-dom/server": "react-dom/server.edge"
}
}
}
});
export default defineConfig({});