CloudflareDeployCliAction class
Cloudflare deployment process.
Deploys the edge Worker (cloudflare/wrangler.jsonc) and, when
cloudflare->workers->region->enable is true, the region Worker
(cloudflare/wrangler.region.jsonc) in this order. When
cloudflare->pages->enable is true, the public directory
(cloudflare->pages->public_dir, cloudflare/pages by default) is
deployed to Cloudflare Pages as is afterwards.
As with Firebase Hosting, Flutter web is never built here. Build it
separately (e.g. in CI) and copy the output into the public directory.
Static files placed in the same directory (such as
.well-known/apple-app-site-association, _headers or _redirects) are
deployed together.
Cloudflareのデプロイ処理を行います。
edge Worker(cloudflare/wrangler.jsonc)をデプロイし、
cloudflare->workers->region->enableがtrueの場合はregion Worker
(cloudflare/wrangler.region.jsonc)をその後にデプロイします。
cloudflare->pages->enableがtrueの場合は、その後に公開ディレクトリ
(cloudflare->pages->public_dir、既定はcloudflare/pages)を
そのままCloudflare Pagesへデプロイします。
Firebase Hostingと同様に、ここではFlutter Webのビルドを行いません。
CIなどで別途ビルドし、成果物を公開ディレクトリへコピーしてください。
同じディレクトリに置いた静的ファイル(.well-known/apple-app-site-association、
_headers、_redirectsなど)も一緒にデプロイされます。
- Inheritance
-
- Object
- CliCommand
- CloudflareDeployCliAction
- Mixed-in types
Constructors
- CloudflareDeployCliAction()
-
Cloudflare deployment process.
const
Properties
- description → String
-
Command Description.
no setteroverride
- example → String?
-
Example of command input.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
checkEnabled(
ExecContext context) → bool -
Decide whether to apply this action based on the contents of
context.override -
exec(
ExecContext context) → Future< void> -
Run command.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited