mirror of
https://github.com/immich-app/immich.git
synced 2025-01-16 16:56:46 +01:00
wip
This commit is contained in:
parent
d9fe1bf51e
commit
b50225327d
6 changed files with 914 additions and 8 deletions
|
@ -30,8 +30,14 @@ async function bootstrap() {
|
||||||
app.use(cookieParser());
|
app.use(cookieParser());
|
||||||
app.use(json({ limit: '10mb' }));
|
app.use(json({ limit: '10mb' }));
|
||||||
if (isDev()) {
|
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));
|
app.useWebSocketAdapter(new WebSocketAdapter(app));
|
||||||
useSwagger(app);
|
useSwagger(app);
|
||||||
|
|
||||||
|
|
|
@ -6,10 +6,13 @@ const config: CapacitorConfig = {
|
||||||
webDir: 'build',
|
webDir: 'build',
|
||||||
|
|
||||||
server: {
|
server: {
|
||||||
|
url: 'http://192.168.10.242:2283',
|
||||||
|
// hostname: '192.168.10.242',
|
||||||
androidScheme: 'http',
|
androidScheme: 'http',
|
||||||
cleartext: true,
|
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;
|
export default config;
|
||||||
|
|
900
web/package-lock.json
generated
900
web/package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -5,6 +5,7 @@ import {
|
||||||
AssetJobName,
|
AssetJobName,
|
||||||
JobName,
|
JobName,
|
||||||
ThumbnailFormat,
|
ThumbnailFormat,
|
||||||
|
defaults,
|
||||||
finishOAuth,
|
finishOAuth,
|
||||||
getBaseUrl,
|
getBaseUrl,
|
||||||
linkOAuthAccount,
|
linkOAuthAccount,
|
||||||
|
|
|
@ -2,6 +2,7 @@ import { defaults } from '@immich/sdk';
|
||||||
import type { LayoutLoad } from './$types';
|
import type { LayoutLoad } from './$types';
|
||||||
|
|
||||||
export const ssr = false;
|
export const ssr = false;
|
||||||
|
export const prerender = true;
|
||||||
export const csr = true;
|
export const csr = true;
|
||||||
|
|
||||||
export const load = (({ fetch }) => {
|
export const load = (({ fetch }) => {
|
||||||
|
|
|
@ -4,9 +4,14 @@ import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
|
||||||
/** @type {import('@sveltejs/kit').Config} */
|
/** @type {import('@sveltejs/kit').Config} */
|
||||||
const config = {
|
const config = {
|
||||||
preprocess: vitePreprocess(),
|
preprocess: vitePreprocess(),
|
||||||
prerender: false,
|
|
||||||
kit: {
|
kit: {
|
||||||
|
prerender: {
|
||||||
|
entries: [],
|
||||||
|
handleHttpError: 'warn',
|
||||||
|
},
|
||||||
adapter: adapter({
|
adapter: adapter({
|
||||||
|
pages: 'build',
|
||||||
|
assets: 'build',
|
||||||
fallback: 'index.html',
|
fallback: 'index.html',
|
||||||
precompress: false,
|
precompress: false,
|
||||||
}),
|
}),
|
||||||
|
|
Loading…
Reference in a new issue