diff --git a/README.md b/README.md index 9d29600..7cbe4fa 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/next.config.ts b/next.config.ts index 94647ad..d330315 100644 --- a/next.config.ts +++ b/next.config.ts @@ -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;