partey_workadventure/front/vite.config.ts

55 lines
1.5 KiB
TypeScript
Raw Permalink 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";
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: 443,
},
},
build: {
sourcemap: true,
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",
"IDENTITY_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:20:17 +01:00
});