From 21f6f07e6a4eb2a9dfedf483467f8fda045cee17 Mon Sep 17 00:00:00 2001 From: pan93412 Date: Thu, 27 Jul 2023 21:27:23 +0800 Subject: [PATCH] chore: Update test snapshot (#114) --- .../nodejs/__snapshots__/template_test.snap | 23 +++++++------------ 1 file changed, 8 insertions(+), 15 deletions(-) diff --git a/internal/nodejs/__snapshots__/template_test.snap b/internal/nodejs/__snapshots__/template_test.snap index 9cbc17c5..948829bc 100755 --- a/internal/nodejs/__snapshots__/template_test.snap +++ b/internal/nodejs/__snapshots__/template_test.snap @@ -6,12 +6,10 @@ ENV PORT=8080 WORKDIR /src RUN corepack enable && corepack prepare --all -COPY package.json package-lock.json* yarn.lock* pnpm-lock.yaml* .npmrc* ./ +COPY . . RUN yarn install -COPY . . - # Build if we can build it @@ -29,12 +27,10 @@ ENV PORT=8080 WORKDIR /src RUN corepack enable && corepack prepare --all -COPY package.json package-lock.json* yarn.lock* pnpm-lock.yaml* .npmrc* ./ +COPY . . RUN yarn install -COPY . . - # Build if we can build it @@ -46,6 +42,7 @@ RUN echo "\ server { \ listen 8080; \ root /usr/share/nginx/html/static; \ + absolute_redirect off; \ location / { \ try_files \$uri \$uri.html \$uri/index.html /404.html =404; \ } \ @@ -62,12 +59,10 @@ ENV PORT=8080 WORKDIR /src RUN corepack enable && corepack prepare --all -COPY package.json package-lock.json* yarn.lock* pnpm-lock.yaml* .npmrc* ./ +COPY . . RUN yarn install -COPY . . - # Build if we can build it @@ -79,6 +74,7 @@ RUN echo "\ server { \ listen 8080; \ root /usr/share/nginx/html/static; \ + absolute_redirect off; \ location / { \ try_files \$uri /index.html; \ } \ @@ -95,12 +91,10 @@ ENV PORT=8080 WORKDIR /src RUN corepack enable && corepack prepare --all -COPY package.json package-lock.json* yarn.lock* pnpm-lock.yaml* .npmrc* ./ +COPY . . RUN yarn install -COPY . . - # Build if we can build it RUN yarn build @@ -118,12 +112,10 @@ ENV PORT=8080 WORKDIR /src RUN corepack enable && corepack prepare --all -COPY package.json package-lock.json* yarn.lock* pnpm-lock.yaml* .npmrc* ./ +COPY . . RUN yarn install -COPY . . - # Build if we can build it RUN yarn build @@ -135,6 +127,7 @@ RUN echo "\ server { \ listen 8080; \ root /usr/share/nginx/html/static; \ + absolute_redirect off; \ location / { \ try_files \$uri /index.html; \ } \