Minor fixes

This commit is contained in:
Keith Irwin 2023-03-04 16:31:44 -07:00
parent 79eb33b8aa
commit ddf65fbc5a
Signed by: ki9
GPG Key ID: DF773B3F4A88DA86
2 changed files with 4 additions and 5 deletions

View File

@ -10,8 +10,9 @@ WORKDIR /usr/local/src/
# Install app dependencies
COPY package*.json ./
RUN npm ci --only=production
COPY .eleventyignore ./
COPY *.js ./
COPY .env ./
# Run api
ENTRYPOINT [ "npm", "run", "--"]
ENTRYPOINT ["npm", "run", "--"]

View File

@ -1,12 +1,10 @@
---
permalink: /assets/data/products.json
---
{
{%- for prod in collections.products %}
{ {% for prod in collections.products %}
"{{prod.data.pid}}/{{prod.data.sid}}": {
"price": {{prod.data.price|dump|safe}},
"weight": {{prod.data.specs.weight|dump|safe}},
"volume": {{prod.data.specs.dimensions|dimsToVol|dump|safe}}
}{% if loop.index!==loop.length %},{% endif %}
{%- endfor %}
}
{% endfor %} }