Skip to content

Commit

Permalink
downgrad version vue-cli-plugin-apollo because 'regeneratorRuntime is…
Browse files Browse the repository at this point in the history
… not defined'
  • Loading branch information
adri1s committed Jan 11, 2024
1 parent 83c9e99 commit b8476bb
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 13 deletions.
21 changes: 10 additions & 11 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
FROM node:16-alpine
WORKDIR /app
FROM node:16 as build-stage

ENV VUE_APP_API_URL='http://<STRAPI_URL>/graphql'
WORKDIR /app

RUN npm install -g http-server
COPY package*.json ./
COPY package.json ./
RUN npm install
COPY . .
RUN npm run build

EXPOSE 8080
CMD [ "http-server", "dist" ]
#EXPOSE 8080
#CMD [ "npm", "run", "serve" ]

# PATCH WIP for regenerator-runtime
#FROM nginx:stable-alpine as production-stage
#COPY --from=build-stage /app/dist /usr/share/nginx/html
#COPY nginx.conf /etc/nginx/conf.d/default.conf
#EXPOSE 80
#CMD ["nginx", "-g", "daemon off;"]
FROM nginx:stable-alpine as production-stage
COPY --from=build-stage /app/dist /usr/share/nginx/html
COPY nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"graphql-tag": "^2.9.0",
"sass": "^1.38.1",
"sass-loader": "^7.3.1",
"vue-cli-plugin-apollo": "~0.22.2",
"vue-cli-plugin-apollo": "~0.21.3",
"vue-template-compiler": "^2.6.11"
}
}
2 changes: 1 addition & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
<footer class="footer py-3 bg-light">
<div class="container">
<span v-html="footerText"></span>
<span class="mx-3">Dashboard PG3 - 0.86</span>
<span class="mx-3">Dashboard PG3 - 0.88</span>
</div>
</footer>
</b-col>
Expand Down

0 comments on commit b8476bb

Please sign in to comment.