Start from scratch
This commit is contained in:
1 parent
9f3f21884f
commit
24307eb96a
61 files changed
+906
-8959
No files matched your search
+3
-15
@@ -1,18 +1,6 @@
|
||||
import { defineConfig, loadEnv } from 'vite';
|
||||
import { defineConfig } from 'vite';
|
||||
import vue from '@vitejs/plugin-vue';
|
||||
import { iceMiddleware } from './dev/ice-server.ts';
|
||||
|
||||
// Relative paths let the hosted build work from any static subdirectory.
|
||||
export default defineConfig(({ mode }) => {
|
||||
const env = { ...loadEnv(mode, process.cwd(), ''), ...process.env };
|
||||
return {
|
||||
base: './',
|
||||
server: { host: '127.0.0.1' },
|
||||
plugins: [vue(), {
|
||||
name: 'local-turn-credentials',
|
||||
configureServer(server) {
|
||||
if (env.VITE_ICE_ENDPOINT === '/api/ice-servers') server.middlewares.use(iceMiddleware(env));
|
||||
},
|
||||
}],
|
||||
};
|
||||
export default defineConfig({
|
||||
plugins: [vue()],
|
||||
});
|
||||
Reference in new issue
Block a user