Minor fixes
This commit is contained in:
parent
79eb33b8aa
commit
ddf65fbc5a
|
@ -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", "--"]
|
||||
|
|
|
@ -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 %} }
|
||||
|
|
Loading…
Reference in New Issue