Open abalshakou opened 2 months ago
Hi @abalshakou. Thank you for your report.
To speed up processing of this issue, make sure that you provided sufficient information.
Add a comment to assign the issue: @magento I am working on this
Join Magento Community Engineering Slack and ask your questions in #github channel.
@adobe export issue to JIRA project PWA as Bug
:white_check_mark: Jira issue https://jira.corp.adobe.com/browse/PWA-3355 is successfully created for this GitHub issue.
Describe the bug
My local-interept.js do nothing inside docker composer container. If i use same code on local build - it works as needed - on dev mode or on build
To reproduce
Steps to reproduce the behavior:
`FROM node:18.17.0
ENV PATH /node_modules/.bin:$PATH
RUN apt-get update && apt-get install -y sudo openssl && apt-get clean
RUN usermod -u 1001 node RUN groupmod -g 1001 node
RUN groupadd -g 1000 customuser RUN useradd --no-log-init -d /home/customuser -s /bin/bash -u 1000 -g customuser customuser RUN echo "customuser:customuser" | chpasswd && adduser customuser sudo
RUN mkdir -p /home/customuser RUN chown -R customuser:customuser /home/customuser
ENV NODE_OPTIONS=--openssl-legacy-provider ENV NODE_TLS_REJECT_UNAUTHORIZED=0 ENV MAGENTO_BACKEND_URL=https://staging.x.com/ ENV PORT=443 ENV CHECKOUT_BRAINTREE_TOKEN=xxx
COPY . . RUN ls -la RUN export NODE_TLS_REJECT_UNAUTHORIZED=0 RUN export NODE_OPTIONS=--openssl-legacy-provider RUN export MAGENTO_BACKEND_URL=https://staging.x.com/ RUN export PORT=443 RUN export CHECKOUT_BRAINTREE_TOKEN=xxx RUN yarn
RUN yarn build USER customuser
CMD ["yarn", "start"]`
my local-intercept like this:
`const { Targetables } = require('@magento/pwa-buildpack');
function localIntercept(targets) { const targetables = Targetables.using(targets);
}
module.exports = localIntercept; `
Expected behavior
My pwa works as local-intercept.js has nothing inside I have no errors in docker logs or console of browser or something else
Possible solutions
I need more info how local-intercept.js works, maybe it depends of not clean decision what i dont find in docs
Please complete the following device information:
Please let us know what packages this bug is in regards to:
venia-concept
venia-ui
pwa-buildpack
peregrine
pwa-devdocs
upward-js
upward-spec
create-pwa