fix: remove trailing slash
All checks were successful
Docker / run-tests (push) Successful in 2m48s
Docker / build-and-push-image (push) Successful in 2m22s

This commit is contained in:
Troy 2025-04-14 02:01:02 +01:00
parent 8eb41f8fa4
commit c83a9c41b5
Signed by: troy
GPG key ID: DFC06C02ED3B4711
4 changed files with 10 additions and 9 deletions

View file

@ -3,7 +3,7 @@ name: Docker
on: on:
push: push:
branches: branches:
- "main" - "remove-trailing-slash"
env: env:
REGISTRY: code.troylusty.com REGISTRY: code.troylusty.com

View file

@ -10,3 +10,4 @@ RUN ["npx", "astro", "build"]
FROM ghcr.io/static-web-server/static-web-server:latest FROM ghcr.io/static-web-server/static-web-server:latest
WORKDIR / WORKDIR /
COPY --from=node /usr/src/app/dist /public COPY --from=node /usr/src/app/dist /public
ENV SERVER_REDIRECT_TRAILING_SLASH false

14
package-lock.json generated
View file

@ -24,7 +24,7 @@
"devDependencies": { "devDependencies": {
"@iconify-json/mdi": "^1.2.3", "@iconify-json/mdi": "^1.2.3",
"@tailwindcss/typography": "^0.5.16", "@tailwindcss/typography": "^0.5.16",
"@types/node": "^22.14.0", "@types/node": "^22.14.1",
"npm-check-updates": "^17.1.18", "npm-check-updates": "^17.1.18",
"prettier": "^3.5.3", "prettier": "^3.5.3",
"prettier-plugin-astro": "^0.14.1", "prettier-plugin-astro": "^0.14.1",
@ -1945,9 +1945,9 @@
} }
}, },
"node_modules/@types/node": { "node_modules/@types/node": {
"version": "22.14.0", "version": "22.14.1",
"resolved": "https://registry.npmjs.org/@types/node/-/node-22.14.0.tgz", "resolved": "https://registry.npmjs.org/@types/node/-/node-22.14.1.tgz",
"integrity": "sha512-Kmpl+z84ILoG+3T/zQFyAJsU6EPTmOCj8/2+83fSN6djd6I4o7uOuGIH6vq3PrjY5BGitSbFuMN18j3iknubbA==", "integrity": "sha512-u0HuPQwe/dHrItgHHpmw3N2fYCR6x4ivMNbPHRkBVP4CvN+kiRrKHWk3i8tXiO/joPwXLMYvF9TTF0eqgHIuOw==",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"undici-types": "~6.21.0" "undici-types": "~6.21.0"
@ -7654,9 +7654,9 @@
} }
}, },
"node_modules/vite": { "node_modules/vite": {
"version": "6.2.5", "version": "6.2.6",
"resolved": "https://registry.npmjs.org/vite/-/vite-6.2.5.tgz", "resolved": "https://registry.npmjs.org/vite/-/vite-6.2.6.tgz",
"integrity": "sha512-j023J/hCAa4pRIUH6J9HemwYfjB5llR2Ps0CWeikOtdR8+pAURAk0DoJC5/mm9kd+UgdnIy7d6HE4EAvlYhPhA==", "integrity": "sha512-9xpjNl3kR4rVDZgPNdTL0/c6ao4km69a/2ihNQbcANz8RuCOK3hQBmLSJf3bRKVQjVMda+YvizNE8AwvogcPbw==",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"esbuild": "^0.25.0", "esbuild": "^0.25.0",

View file

@ -28,7 +28,7 @@
"devDependencies": { "devDependencies": {
"@iconify-json/mdi": "^1.2.3", "@iconify-json/mdi": "^1.2.3",
"@tailwindcss/typography": "^0.5.16", "@tailwindcss/typography": "^0.5.16",
"@types/node": "^22.14.0", "@types/node": "^22.14.1",
"npm-check-updates": "^17.1.18", "npm-check-updates": "^17.1.18",
"prettier": "^3.5.3", "prettier": "^3.5.3",
"prettier-plugin-astro": "^0.14.1", "prettier-plugin-astro": "^0.14.1",