remove react
This commit is contained in:
parent
98412adab9
commit
0bb40ff89f
29 changed files with 430 additions and 1730 deletions
|
@ -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({});
|
Loading…
Add table
Add a link
Reference in a new issue