Skip to content

Commit 059cd2c

Browse files
committed
Superstatic configuration migration for 4.x
1 parent 3757cdc commit 059cd2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "Ready-to-go Preact starter project powered by webpack.",
55
"scripts": {
66
"dev": "NODE_ENV=development webpack-dev-server --inline --progress",
7-
"start": "superstatic build -p ${PORT:-8080} --host 0.0.0.0 --gzip -c '{\"rewrites\": [{\"source\":\"**\",\"destination\":\"index.html\"}],\"cache_control\":{\"**\":86400}}'",
7+
"start": "superstatic build -p ${PORT:-8080} --host 0.0.0.0 --gzip -c '{\"rewrites\": [{\"source\":\"**\",\"destination\":\"index.html\"}],\"headers\":[{\"source\":\"**\",\"headers\":[{\"key\":\"Cache-Control\",\"value\":\"max-age=86400\"}]}]}'",
88
"prestart": "npm run build",
99
"build": "NODE_ENV=production webpack -p --progress",
1010
"prebuild": "mkdir -p build && ncp src/assets build/assets",

0 commit comments

Comments
 (0)