File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
src/cli/commands/scaffold Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -153,7 +153,7 @@ Before publishing your content, your S3-compatible bucket must already exist.
153153Type 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.
541541Publish your content by typing:
542542
543543` ` ` sh
544- npm run publish
544+ npm run s3: publish
545545` ` `
546546
547547Then start the local development server:
@@ -565,7 +565,7 @@ When you're ready for production:
565565Once deployed, publish content like so:
566566
567567```sh
568- npm run publish
568+ npm run s3: publish
569569```
570570
571571This:
@@ -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:
Original file line number Diff line number Diff 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
10471047To run your Compute application locally
10481048
You can’t perform that action at this time.
0 commit comments