Files
linkwarden/apps/web/next.config.js
2025-04-19 10:48:22 -04:00

37 lines
715 B
JavaScript

/** @type {import('next').NextConfig} */
const { version } = require("./package.json");
const { i18n } = require("./next-i18next.config");
const nextConfig = {
i18n,
reactStrictMode: true,
staticPageGenerationTimeout: 1000,
images: {
// For fetching the favicons
domains: ["t2.gstatic.com"],
// For profile pictures (Google OAuth)
remotePatterns: [
{
hostname: "*.googleusercontent.com",
},
],
minimumCacheTTL: 10,
},
transpilePackages: ["@linkwarden/prisma"],
env: {
version,
},
webpack(config) {
config.resolve.fallback = {
...config.resolve.fallback,
fs: false,
};
return config;
},
};
module.exports = nextConfig;