Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
Wiki
Manage
Activity
Members
Labels
Plan
Issues
53
Issue boards
Milestones
Wiki
Code
Merge requests
6
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MDM Lab
Wiki
Commits
b5113c59
Commit
b5113c59
authored
1 year ago
by
Remi PLANEL
Browse files
Options
Downloads
Patches
Plain Diff
set nuxt-content baseURL
parent
40f34565
No related branches found
No related tags found
1 merge request
!7
K8s deploy
Pipeline
#111458
failed with stages
in 4 minutes and 8 seconds
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Dockerfile
+5
-1
5 additions, 1 deletion
Dockerfile
nuxt.config.ts
+1
-0
1 addition, 0 deletions
nuxt.config.ts
with
6 additions
and
1 deletion
Dockerfile
+
5
−
1
View file @
b5113c59
### Stage Install ###
### Stage Install ###
FROM
node:19.5-bullseye-slim
as
install
FROM
node:19.5-bullseye-slim
as
install
WORKDIR
/usr/src/app
WORKDIR
/usr/src/app
ENV
PATH /usr/src/app/node_modules/.bin:$PATH
ENV
PATH /usr/src/app/node_modules/.bin:$PATH
COPY
package*.json ./
COPY
package*.json ./
...
@@ -40,10 +42,12 @@ CMD [ "node", "server/index.mjs"]
...
@@ -40,10 +42,12 @@ CMD [ "node", "server/index.mjs"]
### STAGE: Generate ###
### STAGE: Generate ###
FROM
node:19.5-bullseye-slim
as
generate
FROM
node:19.5-bullseye-slim
as
generate
ARG
NUXT_APP_BASE_URL
WORKDIR
/usr/src/app
WORKDIR
/usr/src/app
COPY
--from=install /usr/src/app ./
COPY
--from=install /usr/src/app ./
COPY
. /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 ###
### STAGE: NGINX ###
FROM
nginxinc/nginx-unprivileged:1.25
FROM
nginxinc/nginx-unprivileged:1.25
...
...
This diff is collapsed.
Click to expand it.
nuxt.config.ts
+
1
−
0
View file @
b5113c59
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
export
default
defineNuxtConfig
({
export
default
defineNuxtConfig
({
modules
:
[
'
@nuxt/content
'
,
'
vuetify-nuxt-module
'
,
'
@vueuse/nuxt
'
],
modules
:
[
'
@nuxt/content
'
,
'
vuetify-nuxt-module
'
,
'
@vueuse/nuxt
'
],
content
:
{
content
:
{
api
:
{
baseURL
:
'
/wiki/api/_content
'
},
documentDriven
:
{
documentDriven
:
{
injectPage
:
false
,
injectPage
:
false
,
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment