From 0acd1730cb372b7de92df52ec1fd6767e563df11 Mon Sep 17 00:00:00 2001 From: Milan Patel Date: Mon, 1 Apr 2024 04:12:43 +0530 Subject: [PATCH] fix: path issue of docker --- Parse-Dashboard/app.js | 2 +- v2/vite.config.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Parse-Dashboard/app.js b/Parse-Dashboard/app.js index 1530d94225..b0af6eaed8 100644 --- a/Parse-Dashboard/app.js +++ b/Parse-Dashboard/app.js @@ -64,7 +64,7 @@ module.exports = function (config, options) { // wait for app to mount in order to get mountpath app.on('mount', function (parent) { - parent.use('/v2/', express.static(path.join(__dirname, 'public/v2'))); + parent.use('/v2/', express.static(path.join(__dirname, 'v2'))); const mountPath = getMount(app.mountpath); const users = config.users; const useEncryptedPasswords = config.useEncryptedPasswords ? true : false; diff --git a/v2/vite.config.ts b/v2/vite.config.ts index efd00689db..01042a499e 100644 --- a/v2/vite.config.ts +++ b/v2/vite.config.ts @@ -5,7 +5,7 @@ import react from '@vitejs/plugin-react-swc'; export default defineConfig({ plugins: [react()], build: { - outDir: '../Parse-Dashboard/public/v2', + outDir: '../Parse-Dashboard/v2', emptyOutDir: true, rollupOptions: { output: {