mirror of
https://github.com/nestriness/nestri.git
synced 2025-12-12 16:55:37 +02:00
fix: Use public
This commit is contained in:
@@ -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"
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user