How do I create the directory that I serve with my webserver?
Originally created by @coolaj86 on GitHub (Oct 21, 2023).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/9
I'm not a Svelte dev.
I ran `npm run build` and I saw that `./build/` was generated.
I was expecting this to be the directory to serve from my webserver.
However, I can't find `index.html` there.... or anywhere:
```sh
fd -uuu | rg '.html$'
```
```text
src/app.html
node_modules/tslib/tslib.html
node_modules/tslib/tslib.es6.html
node_modules/@sveltejs/kit/src/core/config/default-error.html
```
How do I create the directory that I serve with my webserver?
In SvelteKit with @sveltejs/adapter-node, the entry point for the server is the "index.js" file, not an "index.html" file. This is by design, and you can run the server by executing the following command in the repository directory:
node ./build/index.js
The "index.js" file handles server initialization and rendering the UI. If you have any further questions or need assistance, please don't hesitate to ask.
<!-- gh-comment-id:1773918868 -->
@tjbck commented on GitHub (Oct 21, 2023):
Hi,
In SvelteKit with @sveltejs/adapter-node, the entry point for the server is the "index.js" file, not an "index.html" file. This is by design, and you can run the server by executing the following command in the repository directory:
```sh
node ./build/index.js
```
The "index.js" file handles server initialization and rendering the UI. If you have any further questions or need assistance, please don't hesitate to ask.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @coolaj86 on GitHub (Oct 21, 2023).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/9
I'm not a Svelte dev.
I ran
npm run buildand I saw that./build/was generated.I was expecting this to be the directory to serve from my webserver.
However, I can't find
index.htmlthere.... or anywhere:How do I create the directory that I serve with my webserver?
@tjbck commented on GitHub (Oct 21, 2023):
Hi,
In SvelteKit with @sveltejs/adapter-node, the entry point for the server is the "index.js" file, not an "index.html" file. This is by design, and you can run the server by executing the following command in the repository directory:
The "index.js" file handles server initialization and rendering the UI. If you have any further questions or need assistance, please don't hesitate to ask.