Skip to content

Instantly share code, notes, and snippets.

@gavinmcfarland
Created September 21, 2019 22:15
Show Gist options
  • Select an option

  • Save gavinmcfarland/6b8d13bff9f8b7ecb4cf1c667aa906f8 to your computer and use it in GitHub Desktop.

Select an option

Save gavinmcfarland/6b8d13bff9f8b7ecb4cf1c667aa906f8 to your computer and use it in GitHub Desktop.
Example for using marko-webpack with Now
{
"name": "test",
"version": 2,
"builds": [{
"src": "dist/server/main.js",
"use": "@now/node-server"
}, {
"src": "dist/client/**",
"use": "@now/static"
}],
"routes": [{
"src": "/static/(.*)",
"dest": "dist/client/$1",
"headers": {
"cache-control": "s-maxage=604800"
},
"methods": ["GET"]
},
{
"src": "/(.*)",
"dest": "dist/server/main.js",
"methods": ["GET"]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment