- 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
22 lines
446 B
JavaScript
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);
|