forked from internetarchive/openlibrary
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vue.config.js
24 lines (23 loc) · 988 Bytes
/
vue.config.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
/* eslint-env node, es6 */
module.exports = {
lintOnSave: false,
publicPath: '/static/components/',
// Add support for running from gitpod
...(process.env.GITPOD_WORKSPACE_ID ? {
devServer: {
allowedHosts: [
// It'll pick the first free one, so will be 8080 if OL not running, otherwise 8081.
// The rest are just in case/if you run multiple
`8080-${process.env.GITPOD_WORKSPACE_ID}.${process.env.GITPOD_WORKSPACE_CLUSTER_HOST}`,
`8081-${process.env.GITPOD_WORKSPACE_ID}.${process.env.GITPOD_WORKSPACE_CLUSTER_HOST}`,
`8082-${process.env.GITPOD_WORKSPACE_ID}.${process.env.GITPOD_WORKSPACE_CLUSTER_HOST}`,
`8083-${process.env.GITPOD_WORKSPACE_ID}.${process.env.GITPOD_WORKSPACE_CLUSTER_HOST}`,
],
client: {
webSocketURL: {
port: 443,
},
},
},
} : {}),
};