Add optimizeCss to next

This commit is contained in:
Lee 2022-11-17 06:47:31 +00:00
parent d9f1603081
commit ce5ed88418
No known key found for this signature in database
GPG Key ID: 6EA25896ECCB3121

@ -1,12 +1,14 @@
/** @type {import('next').NextConfig} */
const imageUrlParts = process.env.NEXT_PUBLIC_SITE_URL.split("://"); const imageUrlParts = process.env.NEXT_PUBLIC_SITE_URL.split("://");
/** @type {import('next').NextConfig} */
const nextConfig = { const nextConfig = {
reactStrictMode: true, reactStrictMode: true,
output: "standalone", output: "standalone",
swcMinify: true, swcMinify: true,
optimizeFonts: true, optimizeFonts: true,
experimental: {
optimizeCss: true,
},
images: { images: {
remotePatterns: [ remotePatterns: [