Projektarbeit-MYP/frontend/next.config.mjs
Till Tomczak 0d5b87f163 feat: Implement SSL support and kiosk mode enhancements
- Added SSL configuration to the backend, including self-signed certificate generation and management.
- Updated `setup_myp.sh` to create SSL certificates during installation.
- Enhanced `app.py` to support SSL context for secure communication.
- Introduced a new SSL management menu in the setup script for easier certificate handling.
- Updated frontend API calls to use HTTPS for secure data transmission.
- Implemented kiosk mode features, including automatic browser launch with SSL support.
- Improved documentation in `SUMMARY.md` to reflect new features and network topology changes.
2025-05-25 20:59:13 +02:00

52 lines
1.0 KiB
JavaScript

/** @type {import('next').NextConfig} */
const nextConfig = {
// Entwicklungsumgebung - weniger restriktive CORS
async headers() {
return [
{
source: "/:path*",
headers: [
{
key: "Access-Control-Allow-Origin",
value: "*",
},
{
key: "Access-Control-Allow-Methods",
value: "GET, POST, PUT, DELETE, OPTIONS",
},
{
key: "Access-Control-Allow-Headers",
value: "Content-Type, Authorization",
},
],
},
];
},
// Rewrites für Backend-API-Aufrufe zum Raspberry Pi
async rewrites() {
return [
{
source: '/api/backend/:path*',
destination: 'https://192.168.0.105:5000/api/:path*',
},
// Direkter Proxy für Health-Checks
{
source: '/backend-health',
destination: 'https://192.168.0.105:5000/health',
},
];
},
// Entwicklungseinstellungen
experimental: {
serverComponentsExternalPackages: [],
},
// Logging für Entwicklung
logging: {
fetches: {
fullUrl: true,
},
},
};
export default nextConfig;