2024-12-01 14:12:55 +00:00
|
|
|
import logger from "@/lib/logger";
|
2024-12-01 12:23:41 +00:00
|
|
|
import type { NextConfig } from "next";
|
|
|
|
|
|
|
|
const nextConfig: NextConfig = {
|
|
|
|
/* config options here */
|
2024-12-01 14:12:55 +00:00
|
|
|
serverExternalPackages: ["pino", "pino-pretty"],
|
2024-12-01 12:23:41 +00:00
|
|
|
};
|
|
|
|
|
2024-12-01 14:12:55 +00:00
|
|
|
if (!process.env.GITEA_URL || !process.env.GITEA_TOKEN) {
|
|
|
|
logger.error("GITEA_URL and GITEA_TOKEN must be set in your .env file");
|
|
|
|
throw new Error("GITEA_URL and GITEA_TOKEN must be set in your .env file");
|
|
|
|
}
|
|
|
|
|
2024-12-01 12:23:41 +00:00
|
|
|
export default nextConfig;
|