fix: Use public

This commit is contained in:
Wanjohi
2025-06-13 14:38:20 +03:00
parent 9827100d19
commit 623a0db97f
2 changed files with 9 additions and 9 deletions

View File

@@ -3,11 +3,11 @@ import { storage } from "./storage";
export const cdn = new sst.aws.Router("CDNRouter", {
routes: {
"/public": {
"/*": {
bucket: storage,
rewrite: {
regex: "^/public/([a-zA-Z0-9_-]+)$",
to: "/images/$1"
regex: "^/([a-zA-Z0-9_-]+)$",
to: "/public/$1"
},
},
},