partey_workadventure/front/vite.config.ts

49 lines
1.4 KiB
TypeScript
Raw Normal View History

2022-01-31 16:20:17 +01:00
import { defineConfig } from "vite";
import { svelte } from "@sveltejs/vite-plugin-svelte";
import { envConfig } from "@geprog/vite-plugin-env-config";
2022-01-31 17:34:36 +01:00
import sveltePreprocess from "svelte-preprocess";
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-01-31 17:36:38 +01:00
},
plugins: [
2022-01-31 17:34:36 +01:00
svelte({
preprocess: sveltePreprocess(),
}),
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-01-31 16:20:17 +01:00
});