Skip to content

Commit

Permalink
fix: wait for few seconds before opening the page (prevent the ejs fi…
Browse files Browse the repository at this point in the history
…le is not exists)
  • Loading branch information
felixmosh committed Oct 21, 2024
1 parent 0cc7bed commit e7ff021
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/ui/rsbuild.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,12 @@ export default defineConfig({
},
},
server: {
open: 'http://localhost:3000/ui',
open: {
target: 'http://localhost:3000/ui',
before: async () => {
await new Promise((resolve) => setTimeout(resolve, 5000));
},
},
port: 9000,
proxy: {
'*': 'http://127.0.0.1:3000',
Expand Down

0 comments on commit e7ff021

Please sign in to comment.