Switch to local-build tailwindcss instead CDN

This commit is contained in:
2025-11-18 00:10:37 +01:00
parent 59e3a5e74f
commit ced2d0f3e0
9 changed files with 220 additions and 7 deletions

View File

@@ -64,10 +64,12 @@ func main() {
// In container, templates are assumed to be in /app/templates
router.LoadHTMLGlob("/app/templates/*")
router.Static("/locales", "/app/locales")
router.Static("/static", "/app/static")
} else {
// When running locally, load templates from pkg/web/templates
router.LoadHTMLGlob("pkg/web/templates/*")
router.Static("/locales", "./internal/locales")
router.Static("/static", "./pkg/web/static")
}
// Register all application routes, including the static files and templates.