fix: allow development access from LAN

This commit is contained in:
2026-10-11 12:48:10 +07:00
parent a0fa0e0e56
commit 204231dc0a
2 changed files with 10 additions and 0 deletions

View File

@@ -20,6 +20,14 @@ npm run dev
Откройте `http://localhost:3000`. SQLite-файл будет создан в `data/sleepy.db`.
Для проверки с устройства в локальной сети запустите сервер так:
```bash
npm run dev -- --hostname 0.0.0.0
```
В конфигурации уже разрешён адрес `192.168.1.9`, поэтому дневник будет доступен по `http://192.168.1.9:3000`.
## Деплой с Docker
```bash

View File

@@ -2,6 +2,8 @@ import type { NextConfig } from 'next';
const nextConfig: NextConfig = {
output: 'standalone',
// Permits Next.js development requests opened from the local network.
allowedDevOrigins: ['192.168.1.9'],
};
export default nextConfig;