mirror of
				https://github.com/1Panel-dev/KubePi.git
				synced 2025-10-31 18:42:41 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			45 lines
		
	
	
		
			982 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			45 lines
		
	
	
		
			982 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| const path = require('path')
 | |
| 
 | |
| function resolve(dir) {
 | |
|     return path.join(__dirname, dir)
 | |
| }
 | |
| 
 | |
| module.exports = {
 | |
|     outputDir: path.resolve(__dirname, '../cmd/server/web/ekko'),
 | |
|     productionSourceMap: true,
 | |
|     devServer: {
 | |
|         port: 4300,
 | |
|         open: true,
 | |
|         overlay: {
 | |
|             warnings: false,
 | |
|             errors: true
 | |
|         },
 | |
|         proxy: {
 | |
|             '/proxy': {
 | |
|                 target: 'http://0.0.0.0:2019',
 | |
|             },
 | |
|             '/api': {
 | |
|                 target: 'http://0.0.0.0:2019',
 | |
|                 ws: true,
 | |
|                 secure: false,
 | |
|             },
 | |
|             '/dashboard': {
 | |
|                 target: 'http://0.0.0.0:4400',
 | |
|             },
 | |
|             '/terminal': {
 | |
|                 target: 'http://0.0.0.0:4200',
 | |
|             }
 | |
| 
 | |
|         }
 | |
|     },
 | |
|     configureWebpack: {
 | |
|         devtool: 'source-map',
 | |
|         resolve: {
 | |
|             alias: {
 | |
|                 '@': resolve('src')
 | |
|             }
 | |
|         }
 | |
|     },
 | |
|     publicPath: '/ekko/',
 | |
| };
 | 
