Use aws.impress-asset-images.openneo.net

We're gonna update impress-asset-images.openneo.net to perform redirects and stuff, so Classic DTI can start using the same images that DTI 2020 does.

That should enable us to stop relying on AWS for images, which is important because the new modeling script breaks that anyway :p but this will also let us turn off the image converters that run in the background all the time, and I'm excited for that too!
This commit is contained in:
Emi Matchu 2022-10-11 11:46:17 -07:00
parent e8d7f6678d
commit 29d9d498bf
2 changed files with 2 additions and 2 deletions

View file

@ -51,7 +51,7 @@ import getVisibleLayers, {
// of the following patterns: // of the following patterns:
const VALID_LAYER_URLS = [ const VALID_LAYER_URLS = [
// Some layers are converted from SWF to PNG by Classic DTI, living on S3. // Some layers are converted from SWF to PNG by Classic DTI, living on S3.
/^https:\/\/(impress-asset-images\.openneo\.net|impress-asset-images\.s3\.amazonaws\.com)\/(biology|object)\/[0-9]{3}\/[0-9]{3}\/[0-9]{3}\/[0-9]+\/(150x150|300x300|600x600)\.png(\?[a-zA-Z0-9_-]+)?$/, /^https:\/\/(aws.impress-asset-images\.openneo\.net|impress-asset-images\.openneo\.net|impress-asset-images\.s3\.amazonaws\.com)\/(biology|object)\/[0-9]{3}\/[0-9]{3}\/[0-9]{3}\/[0-9]+\/(150x150|300x300|600x600)\.png(\?[a-zA-Z0-9_-]+)?$/,
// Some layers are converted to PNG or SVG by Neopets themselves, extracted // Some layers are converted to PNG or SVG by Neopets themselves, extracted
// from the manifest file. // from the manifest file.

View file

@ -234,7 +234,7 @@ const resolvers = {
const time = Number(new Date(layer.convertedAt)); const time = Number(new Date(layer.convertedAt));
return ( return (
`https://impress-asset-images.openneo.net/${layer.type}` + `https://aws.impress-asset-images.openneo.net/${layer.type}` +
`/${rid1}/${rid2}/${rid3}/${rid}/${sizeNum}x${sizeNum}.png?v2-${time}` `/${rid1}/${rid2}/${rid3}/${rid}/${sizeNum}x${sizeNum}.png?v2-${time}`
); );
}, },