feat: Support running under subpath (#1451)

This commit is contained in:
Roberto Fernández Iglesias
2026-03-12 22:11:11 +01:00
committed by GitHub
parent 61a3ff55cc
commit 5e6195b252
24 changed files with 97 additions and 33 deletions
@@ -34,7 +34,7 @@ jobs:
working-directory: ./client
- name: Build client
run: DISABLE_ESLINT_PLUGIN=true npm run build
run: INDEX_FORMAT=ejs DISABLE_ESLINT_PLUGIN=true npm run build
working-directory: ./client
- name: Include licenses into dist
@@ -45,7 +45,7 @@ jobs:
- name: Include built client into dist
run: |
mv ../../client/dist/* public
cp public/index.html views
mv public/index.ejs views
working-directory: ./server/dist
- name: Create release package
@@ -24,13 +24,13 @@ jobs:
- name: Build client
run: |
DISABLE_ESLINT_PLUGIN=true npm run build
INDEX_FORMAT=ejs DISABLE_ESLINT_PLUGIN=true npm run build
mv dist build
working-directory: ./client
- name: Update Dockerfile to use prebuilt client
run: |
sed -i '/^FROM node:22 AS client/,/^ && DISABLE_ESLINT_PLUGIN=true npm run build$/c\
sed -i '/^FROM node:22 AS client/,/^ && INDEX_FORMAT=ejs DISABLE_ESLINT_PLUGIN=true npm run build$/c\
FROM node:22 AS client\n\
WORKDIR /app\n\
COPY client/build /app/dist' Dockerfile
@@ -38,13 +38,13 @@ jobs:
- name: Build client
run: |
DISABLE_ESLINT_PLUGIN=true npm run build
INDEX_FORMAT=ejs DISABLE_ESLINT_PLUGIN=true npm run build
mv dist build
working-directory: ./client
- name: Update Dockerfile to use prebuilt client
run: |
sed -i '/^FROM node:22 AS client/,/^ && DISABLE_ESLINT_PLUGIN=true npm run build$/c\
sed -i '/^FROM node:22 AS client/,/^ && INDEX_FORMAT=ejs DISABLE_ESLINT_PLUGIN=true npm run build$/c\
FROM node:22 AS client\n\
WORKDIR /app\n\
COPY client/build /app/dist' Dockerfile
+1 -1
View File
@@ -46,7 +46,7 @@ jobs:
run: |
npm install
cd client
npm run build
INDEX_FORMAT=ejs npm run build
- name: Set up and start server for testing
env: