- Changed image service in `astro.config.mjs` from "cloudflare" to "compile". - Adjusted GridOverlay component to remove unnecessary height styling. - Refined Navigation component with a mobile menu toggle and improved accessibility features. - Updated FeaturedProject and Hero sections to use `min-h-[100dvh]` for better responsiveness. - Modified global CSS to disable smooth scroll on mobile for performance and added a mobile viewport height fix.
30 lines
556 B
JavaScript
30 lines
556 B
JavaScript
// @ts-check
|
|
|
|
import mdx from '@astrojs/mdx';
|
|
import sitemap from '@astrojs/sitemap';
|
|
import { defineConfig } from 'astro/config';
|
|
|
|
import cloudflare from '@astrojs/cloudflare';
|
|
|
|
import tailwindcss from '@tailwindcss/vite';
|
|
|
|
import react from '@astrojs/react';
|
|
|
|
// https://astro.build/config
|
|
export default defineConfig({
|
|
site: 'https://example.com',
|
|
integrations: [mdx(), sitemap(), react()],
|
|
|
|
adapter: cloudflare({
|
|
platformProxy: {
|
|
enabled: true
|
|
},
|
|
|
|
imageService: "compile"
|
|
}),
|
|
|
|
vite: {
|
|
plugins: [tailwindcss()],
|
|
},
|
|
});
|