Remove astro-critters package and update astro.config.mjs
The astro-critters package has been removed resulting in updates in the astro.config.mjs, package.json and package-lock.json files. The code in astro.config.mjs has been reformatted for better readability.
This commit is contained in:
parent
5f2ccf2243
commit
87cf339241
3 changed files with 13 additions and 946 deletions
|
@ -1,27 +1,25 @@
|
|||
import { defineConfig } from 'astro/config';
|
||||
import { defineConfig } from "astro/config";
|
||||
import tailwind from "@astrojs/tailwind";
|
||||
import vercelStatic from '@astrojs/vercel/static';
|
||||
import vercelStatic from "@astrojs/vercel/static";
|
||||
import sitemap from "@astrojs/sitemap";
|
||||
import compressor from "astro-compressor";
|
||||
|
||||
import critters from "astro-critters";
|
||||
|
||||
// https://astro.build/config
|
||||
export default defineConfig({
|
||||
// https://docs.astro.build/en/guides/images/#authorizing-remote-images
|
||||
site: 'https://screwfast.uk',
|
||||
site: "https://screwfast.uk",
|
||||
image: {
|
||||
domains: ["images.unsplash.com"]
|
||||
domains: ["images.unsplash.com"],
|
||||
},
|
||||
prefetch: true,
|
||||
integrations: [tailwind(), sitemap(), compressor({
|
||||
gzip: false,
|
||||
brotli: true
|
||||
}), critters()],
|
||||
output: 'static',
|
||||
integrations: [
|
||||
tailwind(),
|
||||
sitemap(),
|
||||
compressor({ gzip: false, brotli: true }),
|
||||
],
|
||||
output: "static",
|
||||
experimental: {
|
||||
clientPrerender: true,
|
||||
directRenderScript: true
|
||||
directRenderScript: true,
|
||||
},
|
||||
adapter: vercelStatic()
|
||||
});
|
||||
adapter: vercelStatic(),
|
||||
});
|
||||
|
|
930
package-lock.json
generated
930
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -16,7 +16,6 @@
|
|||
"@astrojs/vercel": "^7.3.6",
|
||||
"astro": "^4.5.3",
|
||||
"astro-compressor": "^0.4.1",
|
||||
"astro-critters": "^2.1.4",
|
||||
"globby": "^14.0.1",
|
||||
"gsap": "^3.12.5",
|
||||
"html-minifier": "^4.0.0",
|
||||
|
|
Loading…
Add table
Reference in a new issue