mirror of
https://github.com/graphql-hive/console
synced 2026-04-21 22:47:17 +00:00
Co-authored-by: Kamil Kisiela <kamil.kisiela@gmail.com> Co-authored-by: Saihajpreet Singh <saihajpreet.singh@gmail.com> Co-authored-by: Laurin Quast <laurinquast@googlemail.com> Co-authored-by: Dotan Simha <dotansimha@gmail.com>
17 lines
757 B
Diff
17 lines
757 B
Diff
diff --git a/mode/development.js b/mode/development.js
|
|
index af9de9d75a3689cd4f4b5d2876f2e38bd2674ae4..94ecb29a8e0d2615b1ecd0114dba7f3979dc2b11 100644
|
|
--- a/mode/development.js
|
|
+++ b/mode/development.js
|
|
@@ -79,7 +79,11 @@ async function setup(config) {
|
|
}
|
|
}
|
|
}
|
|
- const indexHtmlPath = join(config.vite.root, 'index.html')
|
|
+
|
|
+ // Request is decorated with viteHtmlFile in: packages/web/app/src/server/index.ts
|
|
+ // It is used to render more than one html file
|
|
+ const htmlFileName = req.viteHtmlFile ?? 'index.html';
|
|
+ const indexHtmlPath = join(config.vite.root,htmlFileName)
|
|
const indexHtml = await read(indexHtmlPath, 'utf8')
|
|
const transformedHtml = await this.devServer.transformIndexHtml(
|
|
req.url,
|