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({
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