fix: remove trailing slash (#1)
Set `SERVER_REDIRECT_TRAILING_SLASH=false` within Dockerfile to disable SWS from adding a trailing slash. Reviewed-on: https://code.troylusty.com/troy/troylusty.com/pulls/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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue