@@ -4,6 +4,4 @@ COPY nginx.conf /etc/nginx/nginx.conf
COPY ./ /usr/share/nginx/html
-COPY ./ /app
-
CMD ["sh", "-c", "sed -i \"s@<html@<html data-env=\"$API_ENV\"@\" /usr/share/nginx/html/index.html; nginx -g \"daemon off;\""]
@@ -17,7 +17,7 @@ export default defineConfig((mode: ConfigEnv) => {
],
root: process.cwd(),
resolve: { alias: { '@': resolve(__dirname, './src') } },
- base: mode.command === 'serve' ? './' : '/app',
+ base: mode.command === 'serve' ? './' : '/',
hmr: true,
server: {
host: '0.0.0.0',