Skip to content

Instantly share code, notes, and snippets.

@hatakancicek
Created August 19, 2019 11:25
Show Gist options
  • Save hatakancicek/cec11e843f77d5a088f4fc7c642e4e88 to your computer and use it in GitHub Desktop.
Save hatakancicek/cec11e843f77d5a088f4fc7c642e4e88 to your computer and use it in GitHub Desktop.
{
"functions": {
"predeploy": "yarn clean && yarn build:app && yarn build:functions && yarn copy:deps && yarn copy:pages",
"source": "dist/functions"
},
"hosting": {
"predeploy": "yarn copy:next && yarn copy:static",
"public": "dist/public",
"rewrites": [
{
"source": "/",
"function": "index"
}
],
"headers": [
{
"source": "**/*.@(jpg|jpeg|gif|png|svg|css|js|woff2|webp)",
"headers": [
{
"key": "Cache-Control",
"value": "max-age=31536000"
}
]
}
],
"cleanUrls": true,
"trailingSlash": false
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment