Files
tfm_ainventory/frontend/next.config.mjs
Daniel Bedeleanu 2078cd9ade fix: resolve CORS preflight issues and Next.js dev origin warnings
- Simplify backend CORS middleware to use standard FastAPI implementation
- Keep subnet validation function for future use in route-level checks
- Add Tailscale subnet pattern to Next.js allowedDevOrigins config
- Both individual IPs and subnet configurations now work correctly
2026-04-21 15:19:45 +03:00

22 lines
446 B
JavaScript

import withPWAInit from 'next-pwa';
const withPWA = withPWAInit({
dest: 'public',
disable: process.env.NODE_ENV === 'development',
register: true,
skipWaiting: true,
});
/** @type {import('next').NextConfig} */
const nextConfig = {
output: "standalone",
allowedDevOrigins: [
"localhost",
"127.0.0.1",
"*.local",
"100.78.182.*", // VPN/Tailscale subnet (100.78.182.0/24)
],
};
export default withPWA(nextConfig);