mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
[PR #10] [MERGED] ref!: enable static builds #20102
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/10
Author: @coolaj86
Created: 10/21/2023
Status: ✅ Merged
Merged: 10/22/2023
Merged by: @tjbck
Base:
main← Head:feat-static📝 Commits (8)
f4f1283feat: enable static builds86395a8feat: enable buildtime API_ENDPOINT env varb035de1Update node.js.yamlc307777feat: update .env.example and add Caddyfile859adeechore: change to API_ENDPOINT to conventional name API_BASE_URL87c8467doc: how to build and test static site6129f41doc: clarify usage of OLLAMA_API_BASE_URLf25359fdoc: contributor added & typo fix📊 Changes
13 files changed (+861 additions, -83 deletions)
View changed files
📝
.github/workflows/node.js.yaml(+2 -0)➕
Caddyfile.localhost(+64 -0)📝
Dockerfile(+8 -3)📝
README.md(+62 -6)➕
example.env(+8 -0)📝
package-lock.json(+648 -20)📝
package.json(+3 -0)📝
run.sh(+1 -1)📝
src/lib/constants.ts(+18 -6)➕
src/routes/+layout.js(+16 -0)➖
src/routes/+page.server.ts(+0 -30)📝
src/routes/+page.svelte(+25 -15)📝
svelte.config.js(+6 -2)📄 Description
adapter-nodetoadapter-staticENDPOINTtoAPI_BASE_URLto follow common convention and avoid confusing with webserver vs api server/apiprefix to more easily allow control of Reverse Proxy routes from Web Server to API ServerPreview Documentation
https://github.com/coolaj86/ollama-webui/tree/feat-static#how-to-build-for-static-deployment
How to build
Example
Caddyfilelocalhost:11434./build/with Working CORS Snippet
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.