/
githubmirror
/
photoprism
Обзор
Документация
Войти
/
githubmirror
/
photoprism
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
internal/server/sw_fallback.go
11 строк
409 B
Michael Mayer
Config: Add StaticBuildFile() and StaticImgFile() functions #5274
18 окт 2025, 10:09
18 окт 2025, 10:09
bf6d7e4
Код
Авторство
О чём код?
package server import _ "embed" // fallbackServiceWorker is a tiny service worker embedded in the binary so the // server can respond to /sw.js even when the frontend assets (and thus the // Workbox-generated service worker) have not been built yet. It keeps tests and // development environments functional without affecting production builds. // //go:embed sw_fallback.js var fallbackServiceWorker []byte