Skip to content

Commit

Permalink
chore: fixup docs dockerfile (#3243)
Browse files Browse the repository at this point in the history
  • Loading branch information
FRSgit authored Nov 15, 2024
1 parent 6d69b69 commit 725d251
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 3 additions & 1 deletion .vuestorefrontcloud/docs/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,19 @@ FROM node:20-alpine AS build

WORKDIR /var/www

COPY . .

ARG VITE_DOCS_BASEPATH
ARG VITE_DOCS_EXAMPLES_REACT_PATH
ARG VITE_DOCS_EXAMPLES_VUE_PATH
ARG ENVIRONMENT

ENV VITE_DOCS_BASEPATH=$VITE_DOCS_BASEPATH
ENV NUXT_APP_BASE_URL=$VITE_DOCS_BASEPATH
ENV VITE_DOCS_EXAMPLES_REACT_PATH=$VITE_DOCS_EXAMPLES_REACT_PATH
ENV VITE_DOCS_EXAMPLES_VUE_PATH=$VITE_DOCS_EXAMPLES_VUE_PATH
ENV ENVIRONMENT=$ENVIRONMENT

COPY . .
RUN yarn
RUN ENV_NAME=$ENVIRONMENT yarn build:replace-assets-url-with
RUN yarn build:vue
Expand Down
2 changes: 1 addition & 1 deletion .vuestorefrontcloud/router/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ ENV TARGET_DOMAIN=$TARGET_DOMAIN

COPY .vuestorefrontcloud/router/docker/default.conf.template /etc/nginx/conf.d/default.conf.template

RUN envsubst < /etc/nginx/conf.d/default.conf.template > /etc/nginx/conf.d/default.conf
RUN envsubst '$TARGET_DOMAIN' < /etc/nginx/conf.d/default.conf.template > /etc/nginx/conf.d/default.conf
6 changes: 2 additions & 4 deletions apps/docs/components/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
export default defineNuxtConfig({
extends: ['sf-docs-base'],
app: {
baseURL: process.env.VITE_DOCS_BASEPATH ?? '',

head: {
link: [
{
Expand All @@ -15,10 +13,10 @@ export default defineNuxtConfig({
},
},
robots: {
enabled: false
enabled: false,
},
sitemap: {
enabled: false
enabled: false,
},
// fix via https://github.com/nuxt/content/issues/2254
alias: {
Expand Down

0 comments on commit 725d251

Please sign in to comment.