Skip to content

Commit 34e06a8

Browse files
committed
Add zeit now deploy config
1 parent 0d01699 commit 34e06a8

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

frontend/now.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"version": 2,
3+
"name": "thread",
4+
"build": {
5+
"env": {
6+
"VUE_APP_API_URL": "@api-url",
7+
"VUE_APP_PUSHER_APP_KEY": "@pusher-app-key",
8+
"VUE_APP_PUSHER_APP_CLUSTER": "@pusher-app-cluster",
9+
"VUE_APP_PUSHER_APP_AUTH_ENDPOINT": "@pusher-app-auth-endpoint"
10+
}
11+
},
12+
"builds": [{ "src": "package.json", "use": "@now/static-build" }],
13+
"routes": [
14+
{ "src": "^/js/(.*)", "dest": "/js/$1" },
15+
{ "src": "^/css/(.*)", "dest": "/css/$1" },
16+
{ "src": "^/img/(.*)", "dest": "/img/$1" },
17+
{ "src": ".*", "dest": "/index.html" }
18+
]
19+
}

frontend/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"scripts": {
66
"serve": "vue-cli-service serve",
77
"build": "vue-cli-service build",
8-
"lint": "vue-cli-service lint"
8+
"lint": "vue-cli-service lint",
9+
"now-build": "vue-cli-service build"
910
},
1011
"dependencies": {
1112
"@fortawesome/fontawesome-svg-core": "^1.2.17",

0 commit comments

Comments
 (0)