feat: support self-host docker build (#5506)

Test command: `docker compose -f ./.github/deployment/self-host/compose.yaml up`
This commit is contained in:
LongYinan committed 2024-01-10 08:35:21 +00:00
1 parent 0d7ffb0511
commit 237722f7f9
20 files changed
+241 -37

No files matched your search

+4 -1
View File
@@ -72,7 +72,10 @@ const OptimizeOptionOptions: (
export const getPublicPath = (buildFlags: BuildFlags) => {
const { BUILD_TYPE } = process.env;
const publicPath = process.env.PUBLIC_PATH ?? '/';
if (typeof process.env.PUBLIC_PATH === 'string') {
return process.env.PUBLIC_PATH;
}
const publicPath = '/';
if (process.env.COVERAGE || buildFlags.distribution === 'desktop') {
return publicPath;
}