cdk-nextjs 0.0.1 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -19,11 +19,7 @@ RUN \
19
19
  fi
20
20
  ARG BUILD_COMMAND
21
21
  ARG RELATIVE_PATH_TO_WORKSPACE
22
- RUN \
23
- if [ -f ./cdk-nextjs-load-env-vars.sh ]; then \
24
- chmod u+x ./cdk-nextjs-load-env-vars.sh && \
25
- . ./cdk-nextjs-load-env-vars.sh; \
26
- fi && \
27
- cd $RELATIVE_PATH_TO_WORKSPACE && \
28
- $BUILD_COMMAND
29
- # TODO: remove unnecessary node_modules: https://github.com/sst/open-next/pull/242
22
+ RUN if [ -f ./cdk-nextjs-load-env-vars.sh ]; then chmod u+x ./cdk-nextjs-load-env-vars.sh && . ./cdk-nextjs-load-env-vars.sh; fi
23
+ RUN cd $RELATIVE_PATH_TO_WORKSPACE && $BUILD_COMMAND
24
+ # after building, node_modules aren't needed anymore. this reduces image size by over 50mb
25
+ RUN rm -rf node_modules