fix: add host 0.0.0.0 for local dev accessibility

This commit is contained in:
2026-04-22 07:58:03 +07:00
parent c38cc4ae26
commit 5033281eab
4 changed files with 6 additions and 5 deletions

View File

@@ -241,8 +241,8 @@ bash skills/website-creator/scripts/new-project.sh my-website /path/to/projects/
6. Initialize git
**เปิด browser:**
- Frontend: http://localhost:4321
- Tina Admin: http://localhost:4321/admin (dev mode)
- Frontend: http://localhost:4321 หรือ http://0.0.0.0:4321
- Tina Admin: http://localhost:4321/admin หรือ http://0.0.0.0:4321/admin (dev mode)
---
@@ -791,7 +791,7 @@ const { Content } = await post.render();
npm run dev
```
Tina จะ available ที่ `http://localhost:4321/admin`
Tina จะ available ที่ `http://localhost:4321/admin` หรือ `http://0.0.0.0:4321/admin`
### Production Setup

View File

@@ -199,7 +199,7 @@ main() {
echo "Next steps:"
echo " 1. cd $PROJECT_PATH"
echo " 2. npm run dev"
echo " 3. Open http://localhost:4321"
echo " 3. Open http://localhost:4321 or http://0.0.0.0:4321"
echo ""
echo "For Tina CMS admin:"
echo " - npm run dev"

View File

@@ -23,7 +23,7 @@ Astro 6.1.7 + Tina CMS starter template with Tailwind CSS 4.x
# Install dependencies
npm install
# Start development
# Start development (accessible at http://0.0.0.0:4321)
npm run dev
# Build for production

View File

@@ -33,6 +33,7 @@ export default defineConfig({
assets: '_assets',
},
server: {
host: '0.0.0.0',
port: 4321,
},
})