Skip to content

Commit fe39abc

Browse files
committed
Call publish script "s3:publish"
1 parent 85b1f20 commit fe39abc

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ Before publishing your content, your S3-compatible bucket must already exist.
153153
Type the following:
154154

155155
```sh
156-
npm run publish
156+
npm run s3:publish
157157
```
158158

159159
#### 3. Preview Locally
@@ -541,7 +541,7 @@ Before publishing your content, your S3-compatible bucket must already exist.
541541
Publish your content by typing:
542542

543543
```sh
544-
npm run publish
544+
npm run s3:publish
545545
```
546546

547547
Then start the local development server:
@@ -565,7 +565,7 @@ When you're ready for production:
565565
Once deployed, publish content like so:
566566
567567
```sh
568-
npm run publish
568+
npm run s3:publish
569569
```
570570
571571
This:
@@ -577,7 +577,7 @@ This:
577577
> [!TIP]
578578
> Upload to a specific collection by specifying the collection name when publishing content:
579579
> ```sh
580-
> npm run publish -- --collection-name=preview-42
580+
> npm run s3:publish -- --collection-name=preview-42
581581
> ```
582582
583583
**No Wasm redeploy needed** unless you:

src/cli/commands/scaffold/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -780,7 +780,7 @@ export async function action(actionArgs: string[]) {
780780
packageJsonScripts['dev:publish'] = 'npx @fastly/compute-js-static-publish publish-content --local';
781781
packageJsonScripts['fastly:publish'] = 'npx @fastly/compute-js-static-publish publish-content';
782782
} else if (storageMode === 's3') {
783-
packageJsonScripts['publish'] = 'npx @fastly/compute-js-static-publish publish-content --local';
783+
packageJsonScripts['s3:publish'] = 'npx @fastly/compute-js-static-publish publish-content';
784784
}
785785
resourceFiles['package.json'] = JSON.stringify({
786786
name,
@@ -1038,11 +1038,11 @@ To publish your content to your S3-compatible bucket
10381038
10391039
Using an AWS profile set with "aws configure", type:
10401040
cd ${COMPUTE_JS_DIR}
1041-
AWS_PROFILE=xxxx npm run publish
1041+
AWS_PROFILE=xxxx npm run s3:publish
10421042
10431043
Using AWS IAM credentials, type:
10441044
cd ${COMPUTE_JS_DIR}
1045-
AWS_ACCESS_KEY_ID=xxxx AWS_SECRET_ACCESS_KEY=xxxx npm run publish
1045+
AWS_ACCESS_KEY_ID=xxxx AWS_SECRET_ACCESS_KEY=xxxx npm run s3:publish
10461046
10471047
To run your Compute application locally
10481048

0 commit comments

Comments
 (0)