create-nocobase-app: favicon (#91)

This commit is contained in:
ChengLei Shao 2021-10-21 11:25:40 +08:00 committed by GitHub
parent 61a2a2c694
commit 58d89068af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 8 deletions

View File

@ -7,23 +7,22 @@ dotenv.config({
}); });
export default defineConfig({ export default defineConfig({
favicon: '/favicon.png',
nodeModulesTransform: { nodeModulesTransform: {
type: 'none', type: 'none',
}, },
define: { define: {
'process.env.API_URL': process.env.API_URL || "http://127.0.0.1", '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_PORT': process.env.API_PORT || '13001',
}, },
proxy: { proxy: {
'/api': { '/api': {
'target': `http://localhost:${process.env.API_PORT || "13001"}/`, target: `http://localhost:${process.env.API_PORT || '13001'}/`,
'changeOrigin': true, changeOrigin: true,
'pathRewrite': { '^/api': '/api' }, pathRewrite: { '^/api': '/api' },
}, },
}, },
routes: [ routes: [{ path: '/', exact: false, component: '@/pages/index' }],
{ path: '/', exact: false, component: '@/pages/index' },
],
fastRefresh: {}, fastRefresh: {},
locale: { locale: {
default: 'zh-CN', default: 'zh-CN',

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 KiB