Skip to content
This repository has been archived by the owner on Feb 21, 2024. It is now read-only.

Commit

Permalink
fix: fix favicon route (#93)
Browse files Browse the repository at this point in the history
  • Loading branch information
enicio authored Jan 19, 2024
1 parent ba228ce commit 9c4cc7d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ async function adaptFunction(applicationMapping: ApplicationMapping, tmpFunction
// function to walk in builded functions dir, detect invalid functions and adapt content
export async function adapt(applicationMapping: ApplicationMapping, tmpFunctionsDir: string) {
try{
const vcConfigPaths: Array<string> = glob.sync(".vercel/output/functions/**/.vc-config.json");
const vcConfigPaths: Array<string> = glob.sync(".vercel/output/functions/**/.vc-config.json", { ignore: ['.vercel/output/functions/favicon.ico.func/.vc-config.json'] });
const vcConfigObjects: Array<VcConfigObject> = vcConfigPaths.map(file => {
return {
path: file,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,11 +143,13 @@ function applyPrerenderedRoutes(
vercelOutput: Map<string, BuildOutputItem>
): void {
prerenderedRoutes.forEach(({ headers, overrides }, path) => {
vercelOutput.set(path, {
type: 'override',
path,
headers,
});
if(path !== '/favicon.ico') {
vercelOutput.set(path, {
type: 'override',
path,
headers,
});
}

overrides?.forEach(overridenPath => {
vercelOutput.set(overridenPath, {
Expand Down

0 comments on commit 9c4cc7d

Please sign in to comment.