create-nocobase-app: favicon (#91)
This commit is contained in:
		
							parent
							
								
									61a2a2c694
								
							
						
					
					
						commit
						58d89068af
					
				@ -7,23 +7,22 @@ dotenv.config({
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
export default defineConfig({
 | 
			
		||||
  favicon: '/favicon.png',
 | 
			
		||||
  nodeModulesTransform: {
 | 
			
		||||
    type: 'none',
 | 
			
		||||
  },
 | 
			
		||||
  define: {
 | 
			
		||||
    'process.env.API_URL': process.env.API_URL || "http://127.0.0.1",
 | 
			
		||||
    'process.env.API_PORT': process.env.API_PORT || "13001",
 | 
			
		||||
    'process.env.API_URL': process.env.API_URL || 'http://127.0.0.1',
 | 
			
		||||
    'process.env.API_PORT': process.env.API_PORT || '13001',
 | 
			
		||||
  },
 | 
			
		||||
  proxy: {
 | 
			
		||||
    '/api': {
 | 
			
		||||
      'target': `http://localhost:${process.env.API_PORT || "13001"}/`,
 | 
			
		||||
      'changeOrigin': true,
 | 
			
		||||
      'pathRewrite': { '^/api': '/api' },
 | 
			
		||||
      target: `http://localhost:${process.env.API_PORT || '13001'}/`,
 | 
			
		||||
      changeOrigin: true,
 | 
			
		||||
      pathRewrite: { '^/api': '/api' },
 | 
			
		||||
    },
 | 
			
		||||
  },
 | 
			
		||||
  routes: [
 | 
			
		||||
    { path: '/', exact: false, component: '@/pages/index' },
 | 
			
		||||
  ],
 | 
			
		||||
  routes: [{ path: '/', exact: false, component: '@/pages/index' }],
 | 
			
		||||
  fastRefresh: {},
 | 
			
		||||
  locale: {
 | 
			
		||||
    default: 'zh-CN',
 | 
			
		||||
 | 
			
		||||
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 6.4 KiB  | 
		Loading…
	
		Reference in New Issue
	
	Block a user