fix: add host 0.0.0.0 for local dev accessibility
This commit is contained in:
@@ -241,8 +241,8 @@ bash skills/website-creator/scripts/new-project.sh my-website /path/to/projects/
|
|||||||
6. Initialize git
|
6. Initialize git
|
||||||
|
|
||||||
**เปิด browser:**
|
**เปิด browser:**
|
||||||
- Frontend: http://localhost:4321
|
- Frontend: http://localhost:4321 หรือ http://0.0.0.0:4321
|
||||||
- Tina Admin: http://localhost:4321/admin (dev mode)
|
- 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
|
npm run dev
|
||||||
```
|
```
|
||||||
|
|
||||||
Tina จะ available ที่ `http://localhost:4321/admin`
|
Tina จะ available ที่ `http://localhost:4321/admin` หรือ `http://0.0.0.0:4321/admin`
|
||||||
|
|
||||||
### Production Setup
|
### Production Setup
|
||||||
|
|
||||||
|
|||||||
@@ -199,7 +199,7 @@ main() {
|
|||||||
echo "Next steps:"
|
echo "Next steps:"
|
||||||
echo " 1. cd $PROJECT_PATH"
|
echo " 1. cd $PROJECT_PATH"
|
||||||
echo " 2. npm run dev"
|
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 ""
|
||||||
echo "For Tina CMS admin:"
|
echo "For Tina CMS admin:"
|
||||||
echo " - npm run dev"
|
echo " - npm run dev"
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ Astro 6.1.7 + Tina CMS starter template with Tailwind CSS 4.x
|
|||||||
# Install dependencies
|
# Install dependencies
|
||||||
npm install
|
npm install
|
||||||
|
|
||||||
# Start development
|
# Start development (accessible at http://0.0.0.0:4321)
|
||||||
npm run dev
|
npm run dev
|
||||||
|
|
||||||
# Build for production
|
# Build for production
|
||||||
|
|||||||
@@ -33,6 +33,7 @@ export default defineConfig({
|
|||||||
assets: '_assets',
|
assets: '_assets',
|
||||||
},
|
},
|
||||||
server: {
|
server: {
|
||||||
|
host: '0.0.0.0',
|
||||||
port: 4321,
|
port: 4321,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
Reference in New Issue
Block a user