Skip to content

Commit

Permalink
try fix again
Browse files Browse the repository at this point in the history
  • Loading branch information
guyutongxue committed Jan 22, 2025
1 parent c9d8573 commit e53ed7d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
5 changes: 1 addition & 4 deletions api/v2/deck_image.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,7 @@ const X_CHARACTER_PADDING = Math.round(
(WIDTH - CHARACTER_WIDTH * 3 - GAP * 2) / 2,
);

const IMAGE_DIR =
process.env.NODE_ENV === "production"
? ".vercel/output/static/assets"
: path.resolve(import.meta.dirname, "../../public/assets");
const IMAGE_DIR = path.resolve(import.meta.dirname, "../../public/assets");

/**
*
Expand Down
7 changes: 6 additions & 1 deletion vercel.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,10 @@
]
}
],
"outputDirectory": "dist"
"outputDirectory": "dist",
"functions": {
"api/v2/deck_image.js": {
"includeFiles": "public/assets/*.webp"
}
}
}

0 comments on commit e53ed7d

Please sign in to comment.