chore: minor fixes from final review (Dockerfile reproducibility, Caddy directive, em dash)
M3: frontend/Dockerfile now copies package-lock.json and uses npm ci instead of npm install, for reproducible builds. M4: replace em dash with plain hyphen in manual_share.py's attachment-only fallback text (standing style preference; ping.py title and TriageList.vue's sender fallback were already fixed in prior commits). M5: Caddyfile.snippet uses basic_auth instead of the deprecated basicauth directive alias (Caddy 2.8+). M1/M2/M6 (unused discord import removal, None-payload guard in _extract_body, discord.NotFound guard in thread_ingest.py) were already included in the preceding two commits since they touched the same files.
This commit is contained in:
parent
73fb67b3bf
commit
f8a853a80c
3 changed files with 4 additions and 4 deletions
|
|
@ -1,5 +1,5 @@
|
||||||
chorus.circuitforge.tech {
|
chorus.circuitforge.tech {
|
||||||
basicauth {
|
basic_auth {
|
||||||
donna <bcrypt-hash-here>
|
donna <bcrypt-hash-here>
|
||||||
alan <bcrypt-hash-here>
|
alan <bcrypt-hash-here>
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@ class ManualShareCog(commands.Cog):
|
||||||
return
|
return
|
||||||
|
|
||||||
raw_content = message.content
|
raw_content = message.content
|
||||||
display_content = message.content or "(attachment only — see original message)"
|
display_content = message.content or "(attachment only - see original message)"
|
||||||
snippet = display_content if len(display_content) <= 120 else display_content[:117] + "..."
|
snippet = display_content if len(display_content) <= 120 else display_content[:117] + "..."
|
||||||
|
|
||||||
embed = build_ping_embed(
|
embed = build_ping_embed(
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
FROM node:20-slim AS build
|
FROM node:20-slim AS build
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY package.json .
|
COPY package.json package-lock.json .
|
||||||
RUN npm install
|
RUN npm ci
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue