1
0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2024-12-28 22:51:59 +00:00
This commit is contained in:
Zack Pollard 2024-05-21 09:05:05 +01:00
parent d9fe1bf51e
commit b50225327d
6 changed files with 914 additions and 8 deletions

View file

@ -30,8 +30,14 @@ async function bootstrap() {
app.use(cookieParser());
app.use(json({ limit: '10mb' }));
if (isDev()) {
app.enableCors();
// app.enableCors();
}
app.enableCors({
credentials: true,
origin: true,
allowedHeaders: ['Authorization', 'Content-Type', 'Accept', 'Set-Cookie'],
exposedHeaders: ['Set-Cookie'],
});
app.useWebSocketAdapter(new WebSocketAdapter(app));
useSwagger(app);

View file

@ -6,10 +6,13 @@ const config: CapacitorConfig = {
webDir: 'build',
server: {
url: 'http://192.168.10.242:2283',
// hostname: '192.168.10.242',
androidScheme: 'http',
cleartext: true,
allowNavigation: ['http://192.168.10.242:2283/api/*'],
allowNavigation: ['http://192.168.10.242:2283/api/*', 'http://localhost/*', 'https://localhost/*'],
},
plugins: {},
};
export default config;

900
web/package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -5,6 +5,7 @@ import {
AssetJobName,
JobName,
ThumbnailFormat,
defaults,
finishOAuth,
getBaseUrl,
linkOAuthAccount,

View file

@ -2,6 +2,7 @@ import { defaults } from '@immich/sdk';
import type { LayoutLoad } from './$types';
export const ssr = false;
export const prerender = true;
export const csr = true;
export const load = (({ fetch }) => {

View file

@ -4,9 +4,14 @@ import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
/** @type {import('@sveltejs/kit').Config} */
const config = {
preprocess: vitePreprocess(),
prerender: false,
kit: {
prerender: {
entries: [],
handleHttpError: 'warn',
},
adapter: adapter({
pages: 'build',
assets: 'build',
fallback: 'index.html',
precompress: false,
}),