mirror of
https://github.com/ivabus/www
synced 2025-06-08 13:30:26 +03:00
test s3 bucket config
This commit is contained in:
parent
99da7951a3
commit
186d96776d
3 changed files with 6 additions and 5 deletions
|
@ -25,8 +25,8 @@ const serverlessConfiguration: AWS = {
|
|||
{
|
||||
"Effect": "Allow",
|
||||
"Resource": [
|
||||
"arn:aws:s3:::mockdist.tea.xyz/*",
|
||||
"arn:aws:s3:::mockdist.tea.xyz/*/*",
|
||||
"arn:aws:s3:::dist.tea.xyz/*",
|
||||
"arn:aws:s3:::dist.tea.xyz/*/*",
|
||||
],
|
||||
"Action": [
|
||||
"s3:Get*",
|
||||
|
|
|
@ -47,8 +47,8 @@ const writePackagesToS3 = async (packages: Package[]) => {
|
|||
const buf = Buffer.from(JSON.stringify(packages));
|
||||
|
||||
const data = {
|
||||
Bucket: 'mockdist.tea.xyz',
|
||||
Key: 'packages.json',
|
||||
Bucket: 'dist.tea.xyz',
|
||||
Key: 'mock_packages.json',
|
||||
Body: buf,
|
||||
ContentEncoding: 'base64',
|
||||
ContentType: 'application/json'
|
||||
|
|
|
@ -1,11 +1,12 @@
|
|||
export interface Package {
|
||||
slug: string;
|
||||
name: string;
|
||||
full_name: string;
|
||||
slug: string;
|
||||
desc: string;
|
||||
homepage: string;
|
||||
version: string;
|
||||
installs: number;
|
||||
maintainer: string;
|
||||
thumb_image_url: string;
|
||||
ipfs_content_id: string;
|
||||
}
|
Loading…
Reference in a new issue