PWA #1 μ‹œν–‰μ°©μ˜€ 😒

modricΒ·2024λ…„ 9μ›” 26일
post-thumbnail

문제점

PWA νŠœν† λ¦¬μ–ΌλŒ€λ‘œ ν•˜κ³  λΉŒλ“œ λ‹€ ν–ˆλŠ”λ° μ„€μΉ˜ μ•„μ΄μ½˜μ΄ μ•ˆλœ¨λ„€μš”.

해결방법

개발자λͺ¨λ“œμ—μ„œ μ—λŸ¬ λ³΄λŠ” 법 μ°Ύμ•„μ„œ ν•˜λ‚˜μ”© ν•΄κ²°ν•œλ‹€.

property 'start_url' ignored error, should be same origin as document.

μ°Έκ³ 

Before "start_url": "https://pjt-booth.vercel.app/",
Now "start_url": "/"

manifest.json:1 GET http://localhost:3000/manifest.json 500 (Internal Server Error)Understand this error manifest.json:1 Manifest: Line: 1, column: 1, Syntax error.

Richer PWA UI won’t be available to install on desktop. Please add at least one screenshot with the form_factor set to wide

μ°Έκ³ 

https://developer.chrome.com/blog/richer-install-ui-desktop?hl=ko

μ‚¬μš©μžλŠ” 일반적으둜 μ•± μŠ€ν† μ–΄λ₯Ό 톡해, λ˜λŠ” νŒ¨ν‚€μ§€λ₯Ό λ‹€μš΄λ‘œλ“œν•˜κ³  μ„€μΉ˜λ₯Ό 톡해 μ•±, 특히 ν”Œλž«νΌ 앱을 λ‹€μš΄λ‘œλ“œν•˜κ²Œ λ©λ‹ˆλ‹€. μ˜€λŠ˜λ‚  λ°μŠ€ν¬ν†± ν™˜κ²½μ‘°μ°¨λ„ 쀑앙 집쀑식 μŠ€ν† μ–΄μ—μ„œ 앱을 μ œκ³΅ν•˜λŠ” λ°©ν–₯으둜 μ „ν™˜ν•˜κ³  μžˆμŠ΅λ‹ˆλ‹€.
μ›Ή μ•±μ˜ 경우 λͺ¨λΈμ΄ λ‹€λ¦…λ‹ˆλ‹€. μ‚¬μš©μžκ°€ μ›Ή 앱을 λ‹€μš΄λ‘œλ“œν•˜κΈ° μœ„ν•΄ 쀑앙 집쀑식 App Depotλ₯Ό λ°©λ¬Έν•  ν•„μš”κ°€ μ—†μŠ΅λ‹ˆλ‹€. λͺ¨λ“  μ›Ή ν™˜κ²½μ„ μ„€μΉ˜ν•  수 μžˆλŠ” 것은 μ•„λ‹™λ‹ˆλ‹€. μ‚¬μš©μžκ°€ μ„€μΉ˜ μ˜΅μ…˜μ„ ν΄λ¦­ν•˜λ©΄ μ•„λž˜μ™€ 같이 κΈ°λ³Έ λŒ€ν™”μƒμžμ— μΆ”κ°€ 정보가 ν¬ν•¨λ˜μ§€ μ•ŠμŠ΅λ‹ˆλ‹€.

μ € μŠ€ν¬λ¦°μƒ·μ΄ 없닀보닀.

λ”μš± ν’λΆ€ν•œ μ„€μΉ˜ UI μ‚¬μš© μ„€μ •
더 ν’λΆ€ν•œ μ„€μΉ˜ UI λŒ€ν™”μƒμžλ₯Ό ν‘œμ‹œν•˜λ €λ©΄ κ°œλ°œμžλŠ” screenshots 배열에 μƒμ‘ν•˜λŠ” 폼 νŒ©ν„°μ˜ μŠ€ν¬λ¦°μƒ·μ„ ν•˜λ‚˜ 이상 μΆ”κ°€ν•΄μ•Ό ν•©λ‹ˆλ‹€. description ν•„λ“œλŠ” ν•„μˆ˜λŠ” μ•„λ‹ˆμ§€λ§Œ μ‚¬μš©ν•˜λŠ” 것이 μ’‹μŠ΅λ‹ˆλ‹€.

Manifest λ‹€ κ³ μ³€λŠ”λ°

but μ•ˆλ¨..!!
λ‹€ κ³ μ³€λŠ”λ° μ•ˆλ˜κΈΈλž˜ μ•ˆμ „ν•˜κ²Œ app/layout.ts ν–ˆλ”λ‹ˆ λŒμ•„κ°„λ‹€.

there guys, been struggling with same issue just to find that my html link tag was missing, make sure you are indicating where is your manifest file located on your website header:

μ°Έκ³ 
https://stackoverflow.com/questions/46726966/progressive-web-app-service-worker-not-serving-start-url

해결방법

export default function RootLayout({ children }: RootLayoutProps) {
  return (
    <html lang='en' suppressHydrationWarning>
      <head>
        <link rel='manifest' href='/manifest.json'></link>
      </head>
     μƒλž΅

λ“œλ””μ–΄ λœλ‹€..

μ—…λ‘œλ“œμ€‘..

μ°Έκ³ 

https://stackoverflow.com/questions/58985103/progressive-web-app-not-showing-install-button-in-browser-bar

profile
μ•ˆλ…•ν•˜μ„Έμš” μΉ΄νŽ˜μ—μ„œ μ½”λ”©ν•˜λ©΄ μ•ˆ μΌμ–΄λ‚˜κΈ° λΌλŠ” 일을 μž˜ν•©λ‹ˆλ‹€

0개의 λŒ“κΈ€