-
Notifications
You must be signed in to change notification settings - Fork 4
/
config.default.js
37 lines (28 loc) · 1.06 KB
/
config.default.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
const path = require('path');
module.exports = {
// application backend proxy
proxy: {
target: 'http://localhost:8000',
prefix: ['/api', '/storage', '/css'],
changeOrigin: true,
},
// admin panel routes base path
basePath: '/',
// api base path
// WARNING: do not set this option to same or starting with basePath or publicPath!
apiRoot: '/api/',
// admin dev app port
port: 8080,
// Webpack build output path accessible from a web-server
buildDest: path.resolve(process.cwd(), 'public/admin-dist'),
// public root to include bundle files to the app layout HTML (web-server public path root)
// WARNING: do not set this option to same or starting with basePath or apiRoot!
publicPath: '/admin-dist/',
// Webpack will try to resolve sources from this path before a package root
sourcePath: path.resolve(process.cwd(), 'admin'),
// Google Maps API key is required to use any of geo field types
// googleMapsApiKey: 'key'
// Webpack config modifier
// original configuration is in webpack.config.js file
// webpackConfigModifier(config, isDev) {}
};