Skip to content

Commit

Permalink
Merge branch 'master' into snyk-upgrade-a2aab8d83013162bc0023d2260e4e6df
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-yates1 authored Nov 12, 2024
2 parents c7a81a8 + 7c771b7 commit d0f8a49
Show file tree
Hide file tree
Showing 68 changed files with 6,864 additions and 1,756 deletions.
87 changes: 86 additions & 1 deletion next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,8 +1,93 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
images: {
domains: ["find-my-rave.s3.eu-west-2.amazonaws.com"],
remotePatterns: [
{
protocol: "https",
hostname: "find-my-rave.s3.eu-west-2.amazonaws.com",
port: "",
pathname: "/**",
},
{
protocol: "https",
hostname: "lh3.googleusercontent.com",
port: "",
pathname: "/**",
},
{
protocol: "https",
hostname: "d31fr2pwly4c4s.cloudfront.net",
port: "",
pathname: "/**",
},
{
protocol: "https",
hostname: "skiddle.imgix.net",
port: "",
pathname: "/**",
},
{
protocol: "https",
hostname: "skiddleartists.imgix.net",
port: "",
pathname: "/**",
},
{
protocol: "https",
hostname: "d1plawd8huk6hh.cloudfront.net",
port: "",
pathname: "/**",
},
{
protocol: "https",
hostname: "img.evbuc.com",
port: "",
pathname: "/**",
},
{
protocol: "https",
hostname: "cdn.evbuc.com",
port: "",
pathname: "/**",
},
{
protocol: "https",
hostname: "dhzjvxyl79yzn.cloudfront.net",
port: "",
pathname: "/**",
},
],
formats: ['image/avif', 'image/webp'],
minimumCacheTTL: 60,
},
webpack: (config, { isServer }) => {
if (!isServer) {
config.optimization.splitChunks = {
chunks: 'all',
cacheGroups: {
default: false,
vendors: false,
vendor: {
name: 'vendor',
chunks: (chunk) => chunk.name !== 'client',
test: /[\\/]node_modules[\\/]/,
priority: 20,
},
common: {
name: 'common',
minChunks: 2,
chunks: 'async',
priority: 10,
reuseExistingChunk: true,
enforce: true,
},
},
};
}
return config;
},
staticPageGenerationTimeout: 1000,
compress: true,
};

export default nextConfig;
Loading

0 comments on commit d0f8a49

Please sign in to comment.