Skip to content

Commit a14a443

Browse files
committed
Use firebase instead of surge
1 parent bcf4e6e commit a14a443

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

firebase.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"hosting": {
3+
"public": "build",
4+
"headers": [
5+
{
6+
"source": "static/**/*.@(css|js|map)",
7+
"headers": [
8+
{
9+
"key": "Cache-Control",
10+
"value": "max-age=31536000"
11+
}
12+
]
13+
}
14+
]
15+
}
16+
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@
2020
"build": "react-scripts build && react-snapshot",
2121
"test": "react-scripts test --env=jsdom",
2222
"eject": "react-scripts eject",
23-
"deploy": "npm run build && surge -p build"
23+
"deploy": "npm run build && firebase deploy"
2424
}
2525
}

0 commit comments

Comments
 (0)