mirror of
https://github.com/immich-app/immich.git
synced 2024-12-28 22:51:59 +00: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(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);
|
||||
|
||||
|
|
|
@ -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
900
web/package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -5,6 +5,7 @@ import {
|
|||
AssetJobName,
|
||||
JobName,
|
||||
ThumbnailFormat,
|
||||
defaults,
|
||||
finishOAuth,
|
||||
getBaseUrl,
|
||||
linkOAuthAccount,
|
||||
|
|
|
@ -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 }) => {
|
||||
|
|
|
@ -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,
|
||||
}),
|
||||
|
|
Loading…
Reference in a new issue