Finally! Using an Astro API Route to handle all the queries which works like a dream. Also created a custom function to get the relative path for image files, fixing any external access issues. Co-authored-by: june <self@breadone.net> Co-committed-by: june <self@breadone.net>
14 lines
268 B
Docker
14 lines
268 B
Docker
FROM node:24-alpine
|
|
WORKDIR /app
|
|
COPY package*.json ./
|
|
RUN npm i
|
|
COPY . .
|
|
ENV PUBLIC_PB_URL=http://pb:8080
|
|
ENV PUBLIC_URL=http://localhost:4321
|
|
|
|
RUN npm run build
|
|
|
|
EXPOSE 4321
|
|
# CMD ["npm", "run", "dev", "--", "--host"]
|
|
CMD [ "npm", "run", "preview", "--", "--host" ]
|