{
"extends": "astro/tsconfigs/strict",
"include": [".astro/types.d.ts", "**/*"],
"exclude": ["dist"],
"compilerOptions": {
"baseUrl": ".",
"jsx": "react-jsx",
"jsxImportSource": "react"
}
}
import { defineConfig, passthroughImageService } from "astro/config";
import tailwindcss from "@tailwindcss/vite";
import react from "@astrojs/react";
export default defineConfig({
vite: {
plugins: [tailwindcss()],
},
integrations: [react()],
image: {
service: passthroughImageService(),
},
});
- npm run build works locally but not on Cloudflare
- Previously I had "@/*" and "~/*". Removing it doesn't work.
- Doesn't work on Cloudflare worker nor Cloudflare Pages