관리자 글쓰기 화면과 개발 환경 문서 정리

This commit is contained in:
2026-05-07 10:36:01 +09:00
parent e506a343bc
commit 1ef50c111b
13 changed files with 276 additions and 115 deletions

View File

@@ -19,18 +19,13 @@ const nuxtProcess = spawn('nuxt', [
/**
* 개발 서버 링크 출력
* @param {string} localUrl - Nuxt 로컬 URL
* @returns {void}
*/
const printDevLinks = (localUrl) => {
const url = new URL(localUrl)
const origin = `${url.protocol}//${url.hostname}:${url.port}`
const localhostOrigin = `${url.protocol}//localhost:${url.port}`
const printDevLinks = () => {
const origin = `http://${host}:${port}`
console.log('')
console.log('sori.studio 개발 서버')
console.log(`- Localhost: ${localhostOrigin}/`)
console.log(`- Local IP: ${origin}/`)
console.log(`- 개발 서버: ${origin}`)
console.log(`- Admin: ${origin}/admin`)
console.log(`- Tailwind Viewer: ${origin}/_tailwind/`)
console.log('')
@@ -49,7 +44,7 @@ const handleNuxtLog = (chunk) => {
if (localMatch && !printedLinks) {
printedLinks = true
printDevLinks(localMatch[1])
printDevLinks()
continue
}