我购买了一个域名,iwantmyname.com并在遵循本指南时设置了通过S3设置静态网站托管:http://docs.aws.amazon.com/AmazonS3/latest/dev/website-hosting-custom-domain-walkthrough. html
我想要的是设置所有内容,以便当有人去mydomain.com他们看到我的index.html文件托管在S3上时,URL不应该改变为其他东西,就像mydomain.com.s3-website-us-west-2.amazonaws.com我只是想要它一样,mydomain.com
我被困在过去的第3.2步所有的地方它让我配置Route 53的东西.有没有人有更好的分步指导呢?亚马逊并没有做得很好,可能是为了诱使人们购买他们的支持.
所以我有一些我继承的代码,看起来像这样:
String.fromCharCode.apply(null, new Uint8Array(license));
最近,我们不得不更新项目依赖项,我们不在 TypeScript 3 上,它抱怨代码不正确并显示此消息:
Argument of type 'Uint8Array' is not assignable to parameter of type 'number[]'.
Type 'Uint8Array' is missing the following properties from type 'number[]': pop, push, concat, shift, and 3 more.
我还有其他几个地方有相同的错误,它们都是 Uint8Array,除了一个是 Uint16Array。问题似乎是对具有多个重载的 Uint8Array 构造函数进行了一些更改。我曾尝试将代码更改为
const jsonKey: string = String.fromCharCode.apply(null, Array.from(new Uint8Array(license)));
并且
const jsonKey: string = String.fromCharCode.apply(null, Array.prototype.slice.call(new Uint8Array(license)));
这些都无法重新创建代码的原始功能,但它们确实抑制了错误消息。