27 lines
770 B
TypeScript
27 lines
770 B
TypeScript
import type { NextConfig } from "next";
|
|
import dotenv from "dotenv";
|
|
import path from "path";
|
|
|
|
// Lade die .env Datei aus dem Arbeitsverzeichnis
|
|
dotenv.config({ path: path.resolve(__dirname, '.env') });
|
|
|
|
const nextConfig: NextConfig = {
|
|
env: {
|
|
NEXT_PUBLIC_BASE_URL: process.env.NEXT_PUBLIC_BASE_URL
|
|
},
|
|
serverRuntimeConfig: {
|
|
GHOST_API_URL: process.env.GHOST_API_URL,
|
|
GHOST_API_KEY: process.env.GHOST_API_KEY,
|
|
MY_EMAIL: process.env.MY_EMAIL,
|
|
MY_INFO_EMAIL: process.env.MY_INFO_EMAIL,
|
|
MY_PASSWORD: process.env.MY_PASSWORD,
|
|
MY_INFO_PASSWORD: process.env.MY_INFO_PASSWORD
|
|
},
|
|
};
|
|
|
|
const withBundleAnalyzer = require("@next/bundle-analyzer")({
|
|
enabled: process.env.ANALYZE === "true",
|
|
});
|
|
|
|
module.exports = withBundleAnalyzer(nextConfig);
|