Skip to content

Commit

Permalink
Fix reactDevtools build location for dev mode (#2921)
Browse files Browse the repository at this point in the history
  • Loading branch information
Janpot authored Nov 20, 2023
1 parent e61088f commit bb3e8f3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/toolpad-app/src/server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ async function createDevHandler(project: ToolpadProject) {

handler.use(
'/__toolpad_dev__/reactDevtools',
express.static(path.resolve(currentDirectory, '../../dist/editor/reactDevtools')),
express.static(path.resolve(currentDirectory, '../../dist/reactDevtools')),
);

handler.use(
Expand Down
4 changes: 2 additions & 2 deletions packages/toolpad-app/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,13 @@ export default defineConfig((options) => [
entry: ['./reactDevtools/bootstrap.ts'],
silent: true,
clean: !options.watch,
outDir: './public/reactDevtools',
outDir: './dist/reactDevtools',
bundle: true,
sourcemap: true,
target: 'es6',
format: 'iife',
replaceNodeEnv: true,
esbuildPlugins: [cleanFolderOnFailure(path.resolve(__dirname, './public/reactDevtools'))],
esbuildPlugins: [cleanFolderOnFailure(path.resolve(__dirname, './dist/reactDevtools'))],
async onSuccess() {
// eslint-disable-next-line no-console
console.log('reactDevtools: build successful');
Expand Down

0 comments on commit bb3e8f3

Please sign in to comment.