init commit
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
// next.config.js
|
||||
/** @type {import('next').NextConfig} */
|
||||
const nextConfig = {
|
||||
// Разрешённые origin для дев-сборки
|
||||
allowedDevOrigins: [
|
||||
'http://localhost:3001',
|
||||
'http://192.168.219.114:3001',
|
||||
'http://0.0.0.0:3001',
|
||||
'http://localhost:3000',
|
||||
'http://192.168.219.114:3000',
|
||||
],
|
||||
|
||||
// Проксирование запросов /api/* на ваш Django-бэкенд
|
||||
async rewrites() {
|
||||
return [
|
||||
{
|
||||
source: '/api/:path*',
|
||||
destination: 'http://127.0.0.1:8000/api/:path*'
|
||||
}
|
||||
];
|
||||
},
|
||||
};
|
||||
|
||||
module.exports = nextConfig;
|
||||
Reference in New Issue
Block a user