From 46523eb75a0a635698e404e66c2d1f9aae407595 Mon Sep 17 00:00:00 2001 From: TomDo1234 Date: Wed, 3 Apr 2024 17:47:53 +1100 Subject: [PATCH] Done 2 --- docz/docs/03-demos/30-cloud/14-cloudflare.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docz/docs/03-demos/30-cloud/14-cloudflare.md b/docz/docs/03-demos/30-cloud/14-cloudflare.md index 4d6011e..c75e295 100644 --- a/docz/docs/03-demos/30-cloud/14-cloudflare.md +++ b/docz/docs/03-demos/30-cloud/14-cloudflare.md @@ -278,11 +278,11 @@ const XLSX = require("xlsx"); var accessKeyId = "accessKeyId"; var secretAccessKey = "secretAccessKey"; var Bucket = "Bucket"; +var region = "REGION"; +var endpoint = "ENDPOINT"; // highlight-end -var region = "REGION"; var Key = "sheetjstest.xlsx"; -var endpoint = "ENDPOINT"; /* Create a simple workbook and write XLSX to buffer */ var ws = XLSX.utils.aoa_to_sheet(["SheetJS".split(""), [5,4,3,3,7,9,5]]); @@ -354,11 +354,11 @@ const XLSX = require("xlsx"); var accessKeyId = "accessKeyId"; var secretAccessKey = "secretAccessKey"; var Bucket = "Bucket"; +var region = "REGION"; +var endpoint = "ENDPOINT"; // highlight-end -var region = "REGION"; var Key = "sheetjstest.xlsx"; -var endpoint = "ENDPOINT"; /* upload to R2 */ var s3 = new S3Client({ @@ -383,7 +383,7 @@ s3.send(command).then(async (data) => { }); ``` -11) Edit `SheetJSReadFromR2.js` and replace the highlighted lines: +1) Edit `SheetJSReadFromR2.js` and replace the highlighted lines: - `accessKeyId`: access key for the AWS account - `secretAccessKey`: secret access key for the AWS account