Skip to content

A modern and elegant dashboard for network traffic visualization and analysis.

fix: Ensure manifest is emitted in head and add dev image tags.

luolei849c0de1fb30
diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml
index 5a55e0d..ef0cbd8 100644
--- a/.github/workflows/docker-build.yml
+++ b/.github/workflows/docker-build.yml
@@ -2,7 +2,7 @@ name: Build and Push Docker Image
on:
push:
- branches: [ main ]
+ branches: [ main, dev ]
tags: [ 'v*' ]
pull_request:
branches: [ main ]
@@ -61,7 +61,10 @@ jobs:
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=ref,event=pr
- type=sha,prefix=
+ type=sha,prefix=,enable={{is_default_branch}}
+ type=raw,value=dev,enable=${{ github.ref_name == 'dev' }}
+ type=raw,value=${{ steps.pkg.outputs.version }}-dev,enable=${{ github.ref_name == 'dev' }}
+ type=sha,prefix=dev-,enable=${{ github.ref_name == 'dev' }}
- name: Build and push Docker image
uses: docker/build-push-action@v6
diff --git a/apps/web/app/[locale]/layout.tsx b/apps/web/app/[locale]/layout.tsx
index 112764d..a6ac5e7 100644
--- a/apps/web/app/[locale]/layout.tsx
+++ b/apps/web/app/[locale]/layout.tsx
@@ -22,7 +22,6 @@ const geistMono = Geist_Mono({
export const metadata: Metadata = {
title: "Clash Master",
description: "Modern and beautiful traffic analysis dashboard for OpenClash",
- manifest: "/manifest.json",
icons: {
icon: "/clash-master.png",
shortcut: "/clash-master.png",
@@ -62,6 +61,7 @@ export default async function RootLayout({
return (
<html lang={locale} suppressHydrationWarning>
<head>
+ <link rel="manifest" href="/manifest.json" />
<link rel="apple-touch-icon" href="/icons/icon-192x192.png" />
<meta name="mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-capable" content="yes" />