fix: remove trailing slash (#1)
Set `SERVER_REDIRECT_TRAILING_SLASH=false` within Dockerfile to disable SWS from adding a trailing slash. Reviewed-on: #1 Co-authored-by: Troy <hello@troylusty.com> Co-committed-by: Troy <hello@troylusty.com>
This commit is contained in:
parent
8eb41f8fa4
commit
3698e926ea
3 changed files with 10 additions and 9 deletions
|
@ -1,4 +1,4 @@
|
|||
FROM node:latest as node
|
||||
FROM node:latest AS node
|
||||
USER node
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
|
@ -10,3 +10,4 @@ RUN ["npx", "astro", "build"]
|
|||
FROM ghcr.io/static-web-server/static-web-server:latest
|
||||
WORKDIR /
|
||||
COPY --from=node /usr/src/app/dist /public
|
||||
ENV SERVER_REDIRECT_TRAILING_SLASH=false
|
||||
|
|
14
package-lock.json
generated
14
package-lock.json
generated
|
@ -24,7 +24,7 @@
|
|||
"devDependencies": {
|
||||
"@iconify-json/mdi": "^1.2.3",
|
||||
"@tailwindcss/typography": "^0.5.16",
|
||||
"@types/node": "^22.14.0",
|
||||
"@types/node": "^22.14.1",
|
||||
"npm-check-updates": "^17.1.18",
|
||||
"prettier": "^3.5.3",
|
||||
"prettier-plugin-astro": "^0.14.1",
|
||||
|
@ -1945,9 +1945,9 @@
|
|||
}
|
||||
},
|
||||
"node_modules/@types/node": {
|
||||
"version": "22.14.0",
|
||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-22.14.0.tgz",
|
||||
"integrity": "sha512-Kmpl+z84ILoG+3T/zQFyAJsU6EPTmOCj8/2+83fSN6djd6I4o7uOuGIH6vq3PrjY5BGitSbFuMN18j3iknubbA==",
|
||||
"version": "22.14.1",
|
||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-22.14.1.tgz",
|
||||
"integrity": "sha512-u0HuPQwe/dHrItgHHpmw3N2fYCR6x4ivMNbPHRkBVP4CvN+kiRrKHWk3i8tXiO/joPwXLMYvF9TTF0eqgHIuOw==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"undici-types": "~6.21.0"
|
||||
|
@ -7654,9 +7654,9 @@
|
|||
}
|
||||
},
|
||||
"node_modules/vite": {
|
||||
"version": "6.2.5",
|
||||
"resolved": "https://registry.npmjs.org/vite/-/vite-6.2.5.tgz",
|
||||
"integrity": "sha512-j023J/hCAa4pRIUH6J9HemwYfjB5llR2Ps0CWeikOtdR8+pAURAk0DoJC5/mm9kd+UgdnIy7d6HE4EAvlYhPhA==",
|
||||
"version": "6.2.6",
|
||||
"resolved": "https://registry.npmjs.org/vite/-/vite-6.2.6.tgz",
|
||||
"integrity": "sha512-9xpjNl3kR4rVDZgPNdTL0/c6ao4km69a/2ihNQbcANz8RuCOK3hQBmLSJf3bRKVQjVMda+YvizNE8AwvogcPbw==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"esbuild": "^0.25.0",
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
"devDependencies": {
|
||||
"@iconify-json/mdi": "^1.2.3",
|
||||
"@tailwindcss/typography": "^0.5.16",
|
||||
"@types/node": "^22.14.0",
|
||||
"@types/node": "^22.14.1",
|
||||
"npm-check-updates": "^17.1.18",
|
||||
"prettier": "^3.5.3",
|
||||
"prettier-plugin-astro": "^0.14.1",
|
||||
|
|
Loading…
Add table
Reference in a new issue