/** @type {import('next').NextConfig} */ const fs = require('fs'); const path = require('path'); const nextConfig = { reactStrictMode: true, webpack: (config) => { return config; }, // HTTPS-Konfiguration für die Entwicklung devServer: { https: { key: fs.readFileSync(path.resolve(__dirname, 'ssl/myp.key')), cert: fs.readFileSync(path.resolve(__dirname, 'ssl/myp.crt')), }, }, // Konfiguration für selbstsignierte Zertifikate serverOptions: { https: { key: fs.readFileSync(path.resolve(__dirname, 'ssl/myp.key')), cert: fs.readFileSync(path.resolve(__dirname, 'ssl/myp.crt')), }, }, // Zusätzliche Konfigurationen async rewrites() { return [ { source: '/api/:path*', destination: 'https://raspberrypi:443/api/:path*', }, ] } }; module.exports = nextConfig;