Skip to content

Commit

Permalink
add dokku configs
Browse files Browse the repository at this point in the history
  • Loading branch information
ShiningRay committed May 11, 2022
1 parent 3d5b8ed commit 40eb78f
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .buildpacks
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
https://github.com/heroku/heroku-buildpack-nodejs
https://github.com/heroku/heroku-buildpack-static
20 changes: 20 additions & 0 deletions static.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"root": "dist/",
"routes": {
"/**": "index.html"
},
"headers": {
"/": {
"Cache-Control": "no-cache,must-revalidate,proxy-revalidate,max-age=300"
},
"/static/**": {
"Cache-Control": "public, max-age=512000"
},
"/*.js": {
"Cache-Control": "public, max-age=512000"
},
"/*.css": {
"Cache-Control": "public, max-age=512000"
}
}
}

0 comments on commit 40eb78f

Please sign in to comment.