mirror of
https://github.com/immich-app/immich.git
synced 2025-05-23 17:03:01 -04:00
* recreate #13966 * gcast button works * rewrote gcast-player to be GCastDestination and CastManager manages the interface between UI and casting destinations * remove unneeded imports * add "Connected to" translation * Remove css for cast launcher * fix tests * fix doc tests * fix the receiver application ID * remove casting app ID * remove cast button from nav bar It is now present at the following locations: - shared link album and single asset views - asset viewer (normal user) - album view (normal user) * part 1 of fixes from @danieldietzler code review * part 2 of code review changes from @danieldietzler and @jsram91 * cleanup documentation * onVideoStarted missing callback * add token expiry validation * cleanup logic and logging * small cleanup * rename to ICastDestination * cast button changes
32 lines
847 B
JavaScript
32 lines
847 B
JavaScript
import adapter from '@sveltejs/adapter-static';
|
|
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
|
|
import dotenv from 'dotenv';
|
|
|
|
dotenv.config();
|
|
|
|
process.env.PUBLIC_IMMICH_BUY_HOST = process.env.PUBLIC_IMMICH_BUY_HOST || 'https://buy.immich.app';
|
|
process.env.PUBLIC_IMMICH_PAY_HOST = process.env.PUBLIC_IMMICH_PAY_HOST || 'https://pay.futo.org';
|
|
|
|
/** @type {import('@sveltejs/kit').Config} */
|
|
const config = {
|
|
compilerOptions: {
|
|
runes: true,
|
|
},
|
|
preprocess: vitePreprocess(),
|
|
kit: {
|
|
adapter: adapter({
|
|
fallback: 'index.html',
|
|
precompress: true,
|
|
}),
|
|
alias: {
|
|
$lib: 'src/lib',
|
|
'$lib/*': 'src/lib/*',
|
|
'@test-data': 'src/test-data',
|
|
$i18n: '../i18n',
|
|
'chromecast-caf-sender': './node_modules/@types/chromecast-caf-sender/index.d.ts',
|
|
},
|
|
},
|
|
};
|
|
|
|
export default config;
|