diff --git a/products/react-apps/alisurvey/src/main.tsx b/products/react-apps/alisurvey/src/main.tsx index 02cfda4..7c17b04 100644 --- a/products/react-apps/alisurvey/src/main.tsx +++ b/products/react-apps/alisurvey/src/main.tsx @@ -7,7 +7,7 @@ import "./index.css"; createRoot(document.getElementById("root")!).render( - + diff --git a/products/react-apps/alisurvey/vite.config.ts b/products/react-apps/alisurvey/vite.config.ts index dcb1d23..d021b93 100644 --- a/products/react-apps/alisurvey/vite.config.ts +++ b/products/react-apps/alisurvey/vite.config.ts @@ -11,7 +11,11 @@ function getPlugins() { return plugins; } -export default defineConfig({ + + +export default defineConfig(({ command }) => ({ plugins: getPlugins(), - base: '/alisurvey', -}); + base: command === 'build' + ? '/wp-content/products/react-apps/alisurvey/' + : '/alisurvey' +})); \ No newline at end of file