Private
Public Access
Añadidos cmabios para presentar imagenes en los permisos y grupos
This commit is contained in:
1 parent
e784fb6ec8
commit
00f140480d
20 files changed
+468
-57
No files matched your search
@@ -2,12 +2,19 @@ import tailwindcss from '@tailwindcss/vite';
|
||||
import { sveltekit } from '@sveltejs/kit/vite';
|
||||
import { defineConfig } from 'vite';
|
||||
|
||||
// En Docker, el contenedor de Svelte no puede resolver "localhost" hacia nginx.
|
||||
// docker-compose define API_PROXY_TARGET=http://nginx:80.
|
||||
const nodeProcess = globalThis as {
|
||||
process?: { env?: Record<string, string | undefined> };
|
||||
};
|
||||
const apiProxyTarget = nodeProcess.process?.env?.API_PROXY_TARGET || 'http://localhost:80';
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [tailwindcss(), sveltekit()],
|
||||
server: {
|
||||
proxy: {
|
||||
'/api': {
|
||||
target: 'http://localhost:80',
|
||||
target: apiProxyTarget,
|
||||
changeOrigin: true
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user