32 lines
653 B
JavaScript
32 lines
653 B
JavaScript
const nextBuildId = require("next-build-id");
|
|
|
|
console.log("Building with build id: " + process.env.GIT_REV);
|
|
|
|
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
generateEtags: true,
|
|
compress: true,
|
|
env: {
|
|
NEXT_PUBLIC_BUILD_ID:
|
|
process.env.GIT_REV || nextBuildId.sync({ dir: __dirname }),
|
|
},
|
|
images: {
|
|
remotePatterns: [
|
|
{
|
|
protocol: "https",
|
|
hostname: "cdn.fascinated.cc",
|
|
port: "",
|
|
pathname: "/**",
|
|
},
|
|
{
|
|
protocol: "https",
|
|
hostname: "cdn.scoresaber.com",
|
|
port: "",
|
|
pathname: "/**",
|
|
},
|
|
],
|
|
},
|
|
};
|
|
|
|
module.exports = nextConfig;
|