sounds, better files
This commit is contained in:
@@ -2,6 +2,7 @@ import { defineConfig } from 'vite'
|
||||
import vue from '@vitejs/plugin-vue'
|
||||
import { resolve } from 'path'
|
||||
|
||||
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig({
|
||||
build: {
|
||||
@@ -9,9 +10,14 @@ export default defineConfig({
|
||||
input: {
|
||||
main: resolve(__dirname, 'index.html'),
|
||||
map: resolve(__dirname, 'map/index.html'),
|
||||
summon: resolve(__dirname, 'summon/index.html'),
|
||||
chromecast: resolve(__dirname, 'chromecast/index.html'),
|
||||
},
|
||||
},
|
||||
},
|
||||
define: {
|
||||
'import.meta.env.CHROMECAST_APP_ID': JSON.stringify(process.env.VITE_CHROMECAST_APP_ID)
|
||||
},
|
||||
plugins: [
|
||||
vue({
|
||||
template: {
|
||||
@@ -23,8 +29,10 @@ export default defineConfig({
|
||||
],
|
||||
server: {
|
||||
host: '0.0.0.0',
|
||||
cors: true,
|
||||
proxy: {
|
||||
'/maps': 'http://localhost:8080'
|
||||
'/maps': 'http://localhost:8080',
|
||||
'/soundfx': 'http://localhost:8080'
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user