Compare commits

..

2 Commits

Author SHA1 Message Date
Leo Lamprecht
f7c21bbde6 Publish
- @now/static-build@0.9.6
2019-08-07 23:10:28 +00:00
Leo Lamprecht
4c6c17af8a [now-static-build] Capture file system routes for CRA apps (#891)
* Capture file system routes for CRA apps

* Added integration test

* Fixed defaults
2019-08-07 23:09:55 +00:00
4 changed files with 14 additions and 21 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "@now/static-build",
"version": "0.9.5",
"version": "0.9.6",
"license": "MIT",
"main": "./dist/index",
"homepage": "https://zeit.co/docs/v2/deployments/official-builders/static-build-now-static-build",

View File

@@ -158,33 +158,20 @@ export default [
{
src: '/static/(.*)',
headers: { 'cache-control': 's-maxage=31536000, immutable' },
dest: '/static/$1',
},
{
src: '/favicon.ico',
dest: '/favicon.ico',
},
{
src: '/asset-manifest.json',
dest: '/asset-manifest.json',
},
{
src: '/manifest.json',
dest: '/manifest.json',
},
{
src: '/precache-manifest.(.*)',
dest: '/precache-manifest.$1',
continue: true,
},
{
src: '/service-worker.js',
headers: { 'cache-control': 's-maxage=0' },
dest: '/service-worker.js',
continue: true,
},
{
src: '/sockjs-node/(.*)',
dest: '/sockjs-node/$1',
},
{
handle: 'filesystem',
},
{
src: '/(.*)',
headers: { 'cache-control': 's-maxage=0' },

View File

@@ -1,9 +1,14 @@
{
"version": 2,
"builds": [
{ "src": "package.json", "use": "@now/static-build", "config": { "zeroConfig": true } }
{
"src": "package.json",
"use": "@now/static-build",
"config": { "zeroConfig": true }
}
],
"probes": [
{ "path": "/", "mustContain": "React App" }
{ "path": "/", "mustContain": "React App" },
{ "path": "/testing-output-dir.txt", "mustContain": "This is some content" }
]
}

View File

@@ -0,0 +1 @@
This is some content