Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
1bacd5d9
Commit
1bacd5d9
authored
May 19, 2024
by
Jun Siang Cheah
Browse files
Merge branch 'dev' into feat/model-config
parents
5d3eddf7
4edef531
Changes
81
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
vite.config.ts
vite.config.ts
+17
-0
No files found.
vite.config.ts
View file @
1bacd5d9
import
{
sveltekit
}
from
'
@sveltejs/kit/vite
'
;
import
{
defineConfig
}
from
'
vite
'
;
// /** @type {import('vite').Plugin} */
// const viteServerConfig = {
// name: 'log-request-middleware',
// configureServer(server) {
// server.middlewares.use((req, res, next) => {
// res.setHeader('Access-Control-Allow-Origin', '*');
// res.setHeader('Access-Control-Allow-Methods', 'GET');
// res.setHeader('Cross-Origin-Opener-Policy', 'same-origin');
// res.setHeader('Cross-Origin-Embedder-Policy', 'require-corp');
// next();
// });
// }
// };
export
default
defineConfig
({
plugins
:
[
sveltekit
()],
define
:
{
APP_VERSION
:
JSON
.
stringify
(
process
.
env
.
npm_package_version
)
},
worker
:
{
format
:
'
es
'
}
});
Prev
1
2
3
4
5
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment