fix: resolve Next.js warnings and SVG path errors (#98)
* fix: move viewport metadata to separate export - Remove viewport from metadata export in layout.tsx - Add separate viewport export following Next.js 14+ conventions - Fixes unsupported metadata viewport warning * fix: resolve Next.js warnings and SVG path errors - Move viewport metadata to separate export in layout.tsx (Next.js 14+ compliance) - Fix malformed SVG arc command in CategorySidebar.tsx key icon - Add allowedDevOrigins configuration for cross-origin requests from local networks - Support all private network ranges without hardcoding specific IPs
This commit is contained in:
committed by
GitHub
parent
ff1ab35b46
commit
608a7ac78c
@@ -18,6 +18,30 @@ const config = {
|
||||
},
|
||||
],
|
||||
},
|
||||
// Allow cross-origin requests from local network ranges
|
||||
allowedDevOrigins: [
|
||||
'http://localhost:3000',
|
||||
'http://127.0.0.1:3000',
|
||||
'http://[::1]:3000',
|
||||
'http://10.*',
|
||||
'http://172.16.*',
|
||||
'http://172.17.*',
|
||||
'http://172.18.*',
|
||||
'http://172.19.*',
|
||||
'http://172.20.*',
|
||||
'http://172.21.*',
|
||||
'http://172.22.*',
|
||||
'http://172.23.*',
|
||||
'http://172.24.*',
|
||||
'http://172.25.*',
|
||||
'http://172.26.*',
|
||||
'http://172.27.*',
|
||||
'http://172.28.*',
|
||||
'http://172.29.*',
|
||||
'http://172.30.*',
|
||||
'http://172.31.*',
|
||||
'http://192.168.*',
|
||||
],
|
||||
};
|
||||
|
||||
export default config;
|
||||
|
||||
Reference in New Issue
Block a user