Added instrumentation.ts that reads persisted watcher state from the database and restarts active watchers when the Next.js server boots. Also added imapflow/mailparser to serverExternalPackages. Made-with: Cursor
20 lines
402 B
TypeScript
20 lines
402 B
TypeScript
import type { NextConfig } from "next";
|
|
|
|
const nextConfig: NextConfig = {
|
|
output: "standalone",
|
|
images: {
|
|
remotePatterns: [
|
|
{
|
|
protocol: "http",
|
|
hostname: "**",
|
|
},
|
|
{
|
|
protocol: "https",
|
|
hostname: "**",
|
|
},
|
|
],
|
|
},
|
|
serverExternalPackages: ["sharp", "pdf2pic", "chokidar", "pg", "imapflow", "mailparser"],
|
|
};
|
|
|
|
export default nextConfig;
|