2022-01-31 16:20:17 +01:00
|
|
|
import { defineConfig } from "vite";
|
|
|
|
import { svelte } from "@sveltejs/vite-plugin-svelte";
|
2022-01-31 16:56:50 +01:00
|
|
|
import { envConfig } from "@geprog/vite-plugin-env-config";
|
2022-01-31 17:34:36 +01:00
|
|
|
import sveltePreprocess from "svelte-preprocess";
|
2022-03-17 09:54:24 +01:00
|
|
|
import pluginRewriteAll from "vite-plugin-rewrite-all";
|
2022-01-31 16:20:17 +01:00
|
|
|
|
|
|
|
export default defineConfig({
|
2022-01-31 17:36:38 +01:00
|
|
|
server: {
|
|
|
|
port: 8080,
|
2022-01-31 18:35:16 +01:00
|
|
|
hmr: {
|
|
|
|
// workaround for development in docker
|
|
|
|
clientPort: 80,
|
2022-03-17 09:54:24 +01:00
|
|
|
},
|
2022-01-31 17:36:38 +01:00
|
|
|
},
|
2022-01-31 16:56:50 +01:00
|
|
|
plugins: [
|
2022-01-31 17:34:36 +01:00
|
|
|
svelte({
|
|
|
|
preprocess: sveltePreprocess(),
|
|
|
|
}),
|
2022-01-31 16:56:50 +01:00
|
|
|
envConfig({
|
|
|
|
variables: [
|
|
|
|
"SKIP_RENDER_OPTIMIZATIONS",
|
|
|
|
"DISABLE_NOTIFICATIONS",
|
|
|
|
"PUSHER_URL",
|
|
|
|
"UPLOADER_URL",
|
|
|
|
"ADMIN_URL",
|
|
|
|
"CONTACT_URL",
|
|
|
|
"PROFILE_URL",
|
|
|
|
"ICON_URL",
|
|
|
|
"DEBUG_MODE",
|
|
|
|
"STUN_SERVER",
|
|
|
|
"TURN_SERVER",
|
|
|
|
"TURN_USER",
|
|
|
|
"TURN_PASSWORD",
|
|
|
|
"JITSI_URL",
|
|
|
|
"JITSI_PRIVATE_MODE",
|
|
|
|
"START_ROOM_URL",
|
|
|
|
"MAX_USERNAME_LENGTH",
|
|
|
|
"MAX_PER_GROUP",
|
|
|
|
"DISPLAY_TERMS_OF_USE",
|
|
|
|
"POSTHOG_API_KEY",
|
|
|
|
"POSTHOG_URL",
|
|
|
|
"NODE_ENV",
|
|
|
|
"DISABLE_ANONYMOUS",
|
|
|
|
"OPID_LOGIN_SCREEN_PROVIDER",
|
|
|
|
"FALLBACK_LOCALE",
|
|
|
|
],
|
|
|
|
}),
|
2022-02-01 11:15:52 +01:00
|
|
|
pluginRewriteAll(),
|
2022-01-31 16:56:50 +01:00
|
|
|
],
|
2022-01-31 16:20:17 +01:00
|
|
|
});
|