@altinget/vercel-builder
Advanced tools
Comparing version 0.22.6 to 0.22.7
@@ -434,2 +434,10 @@ 'use strict'; | ||
const headers = (_a = config.headers) != null ? _a : { "Cache-Control": "max-age=31557600" }; | ||
const routes = [ | ||
{ src: `/${publicPath}.+`, headers }, | ||
...Object.keys(staticFiles).map((file) => ({ src: `/${file}`, headers })), | ||
{ handle: "filesystem" }, | ||
{ src: "/(.*)", dest: "/index", headers } | ||
]; | ||
console.error("headers", headers); | ||
console.error("routes", routes); | ||
return { | ||
@@ -442,8 +450,3 @@ output: { | ||
}, | ||
routes: [ | ||
{ src: `/${publicPath}.+`, headers }, | ||
...Object.keys(staticFiles).map((file) => ({ src: `/${file}`, headers })), | ||
{ handle: "filesystem" }, | ||
{ src: "/(.*)", dest: "/index" } | ||
], | ||
routes, | ||
images: config.images | ||
@@ -450,0 +453,0 @@ }; |
{ | ||
"name": "@altinget/vercel-builder", | ||
"version": "0.22.6", | ||
"version": "0.22.7", | ||
"repository": "Altinget/vercel-builder", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
48877
528