diff --git a/src/server/outfit-images.test.js b/src/server/outfit-images.test.js index dbae5d4..e29f190 100644 --- a/src/server/outfit-images.test.js +++ b/src/server/outfit-images.test.js @@ -16,8 +16,8 @@ describe("renderOutfitImage", () => { it("renders the Moon and Stars Background and Green Leaf String Lights, as PNG", async () => { const image = await renderOutfitImage( [ - "https://impress-asset-images.s3.amazonaws.com/object/000/000/006/6829/600x600.png", - "https://impress-asset-images.s3.amazonaws.com/object/000/000/036/36414/600x600.png", + "https://impress-asset-images.openneo.net/object/000/000/006/6829/600x600.png", + "https://impress-asset-images.openneo.net/object/000/000/036/36414/600x600.png", ], 600 ); @@ -40,14 +40,14 @@ describe("renderOutfitImage", () => { it("skips network failures, and logs an error", async () => { const image = await renderOutfitImage( [ - "https://impress-asset-images.s3.amazonaws.com/object/000/000/006/6829/600x600.png", - "https://impress-asset-images.s3.amazonaws.com/object/000/000/000/00000000/600x600.png", // fake URL + "https://impress-asset-images.openneo.net/object/000/000/006/6829/600x600.png", + "https://impress-asset-images.openneo.net/object/000/000/000/00000000/600x600.png", // fake URL ], 600 ); expect(image).toMatchImageSnapshot(); expect(console.warn).toHaveBeenCalledWith( - `Error loading layer, skipping: Server responded with 403. (https://impress-asset-images.s3.amazonaws.com/object/000/000/000/00000000/600x600.png)` + `Error loading layer, skipping: Server responded with 403. (https://impress-asset-images.openneo.net/object/000/000/000/00000000/600x600.png)` ); }); }); diff --git a/src/server/types/AppearanceLayer.js b/src/server/types/AppearanceLayer.js index 07f04e8..f003242 100644 --- a/src/server/types/AppearanceLayer.js +++ b/src/server/types/AppearanceLayer.js @@ -213,7 +213,7 @@ const resolvers = { const time = Number(new Date(layer.convertedAt)); return ( - `https://impress-asset-images.s3.amazonaws.com/${layer.type}` + + `https://impress-asset-images.openneo.net/${layer.type}` + `/${rid1}/${rid2}/${rid3}/${rid}/${sizeNum}x${sizeNum}.png?v2-${time}` ); },