Skip to content
Snippets Groups Projects
Commit b5113c59 authored by Remi  PLANEL's avatar Remi PLANEL
Browse files

set nuxt-content baseURL

parent 40f34565
No related branches found
No related tags found
1 merge request!7K8s deploy
Pipeline #111458 failed
### Stage Install ###
FROM node:19.5-bullseye-slim as install
WORKDIR /usr/src/app
ENV PATH /usr/src/app/node_modules/.bin:$PATH
COPY package*.json ./
......@@ -40,10 +42,12 @@ CMD [ "node", "server/index.mjs"]
### STAGE: Generate ###
FROM node:19.5-bullseye-slim as generate
ARG NUXT_APP_BASE_URL
WORKDIR /usr/src/app
COPY --from=install /usr/src/app ./
COPY . /usr/src/app
RUN NUXT_APP_BASE_URL=/wiki/ npm run generate
RUN NUXT_APP_BASE_URL=/wiki npm run generate
### STAGE: NGINX ###
FROM nginxinc/nginx-unprivileged:1.25
......
......@@ -2,6 +2,7 @@
export default defineNuxtConfig({
modules: ['@nuxt/content', 'vuetify-nuxt-module', '@vueuse/nuxt'],
content: {
api: { baseURL: '/wiki/api/_content' },
documentDriven: {
injectPage: false,
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment