From 85a1bda213c49afbd1d0dcf67088d8ef2ba3fda6 Mon Sep 17 00:00:00 2001 From: somebody1234 Date: Wed, 15 Nov 2023 00:34:33 +1000 Subject: [PATCH] Fix `build-dashboard` (#8292) --- app/ide-desktop/lib/dashboard/bundle.ts | 2 +- app/ide-desktop/lib/dashboard/src/404.html | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) delete mode 120000 app/ide-desktop/lib/dashboard/src/404.html diff --git a/app/ide-desktop/lib/dashboard/bundle.ts b/app/ide-desktop/lib/dashboard/bundle.ts index 4bb0a22a34e..2b4d62232b8 100644 --- a/app/ide-desktop/lib/dashboard/bundle.ts +++ b/app/ide-desktop/lib/dashboard/bundle.ts @@ -32,12 +32,12 @@ async function bundle() { }) opts.entryPoints.push( path.resolve(THIS_PATH, 'src', 'index.html'), - path.resolve(THIS_PATH, 'src', '404.html'), path.resolve(THIS_PATH, 'src', 'index.ts') ) opts.metafile = ANALYZE opts.loader['.html'] = 'copy' const result = await esbuild.build(opts) + await fs.copyFile('build/index.html', 'build/404.html') if (result.metafile) { console.log(await esbuild.analyzeMetafile(result.metafile)) } diff --git a/app/ide-desktop/lib/dashboard/src/404.html b/app/ide-desktop/lib/dashboard/src/404.html deleted file mode 120000 index 64233a9e958..00000000000 --- a/app/ide-desktop/lib/dashboard/src/404.html +++ /dev/null @@ -1 +0,0 @@ -index.html \ No newline at end of file