In response to the changes made to the directory structure of the project, the code has been refactored to adjust image import paths across various sections. It also involves reorganizing components into appropriate folders based on their roles in the application. Along with this, a new utility file for navigation links has been introduced, and configurations for authorizing remote images have been added to Astro configuration file, suggesting an enhancement in SEO performance.
17 lines
No EOL
575 B
JavaScript
17 lines
No EOL
575 B
JavaScript
import { defineConfig } from 'astro/config';
|
|
import tailwind from "@astrojs/tailwind";
|
|
import vercelStatic from '@astrojs/vercel/static';
|
|
import sitemap from "@astrojs/sitemap";
|
|
import compressor from "astro-compressor";
|
|
|
|
// https://astro.build/config
|
|
export default defineConfig({
|
|
// https://docs.astro.build/en/guides/images/#authorizing-remote-images
|
|
image: {
|
|
domains: ["images.unsplash.com"],
|
|
},
|
|
site: 'https://screwfast.uk',
|
|
integrations: [tailwind(), sitemap(), compressor({ gzip: false, brotli: true })],
|
|
output: 'static',
|
|
adapter: vercelStatic()
|
|
}); |