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