refactor: remove "Services" pages and migrate content to focused alternatives
- Removed `/services` and `/zh/services` pages. Migrated content to updated pages: `/uses`, `/about#contact-card`, and `/hire`. - Removed Framer Motion for better performance and simpler animations in `LanguageSwitcher`, `GlassHeader`, and other components. - Updated font sources to WOFF2 for better compression and added preload links for critical fonts. - Optimized Vite configuration with manual chunking for React libraries. - Replaced `client:load` with `client:idle` for non-critical client-side components like `GlassHeader`, `Footer`, and `BackToTop`.
This commit is contained in:
@@ -17,7 +17,7 @@ export default defineConfig({
|
||||
},
|
||||
},
|
||||
integrations: [
|
||||
react(),
|
||||
react(),
|
||||
sitemap({
|
||||
i18n: {
|
||||
defaultLocale: 'en',
|
||||
@@ -31,6 +31,16 @@ export default defineConfig({
|
||||
],
|
||||
vite: {
|
||||
plugins: [tailwindcss()],
|
||||
build: {
|
||||
cssCodeSplit: true,
|
||||
rollupOptions: {
|
||||
output: {
|
||||
manualChunks: {
|
||||
'vendor-react': ['react', 'react-dom'],
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
i18n: {
|
||||
// The default locale to fall back to if a page isn't available in the active locale
|
||||
|
||||
Reference in New Issue
Block a user