Fix: Configure Vite base path to /bp_wb/ for BOSA namespace routing
This commit is contained in:
parent
036a5ec083
commit
ea271b5975
2 changed files with 3 additions and 1 deletions
|
|
@ -79,7 +79,8 @@ app.use('/api/pages', createPagesRouter());
|
|||
app.get('/preview/:id', previewPage);
|
||||
|
||||
// Serve static assets (Vite build outputs)
|
||||
// Note: BOSA forwards /bp_wb/assets/* to this plugin, so Express receives /assets/*
|
||||
// BOSA forwards /bp_wb/assets/* to this plugin, Express receives /assets/*
|
||||
// The base path in Vite config ensures assets are referenced as /bp_wb/assets/*
|
||||
app.use('/assets', express.static(path.join(__dirname, 'dist', 'assets')));
|
||||
|
||||
async function serveEditor(req, res) {
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ const __filename = fileURLToPath(import.meta.url);
|
|||
const __dirname = path.dirname(__filename);
|
||||
|
||||
export default defineConfig({
|
||||
base: '/bp_wb/',
|
||||
plugins: [react()],
|
||||
resolve: {
|
||||
alias: {
|
||||
|
|
|
|||
Loading…
Reference in a new issue