@dev-spendesk/fab-deployer-cf-workers
TypeScript icon, indicating that this package has built-in type declarations

1.0.0-rc.12 • Public • Published

@fab/deployer-cf-workers

Package & deploy a FAB to Cloudflare Workers

Add the following to your deploy section of your

{
  // ...
  deploy: {
    'cf-workers': {
      // Use a .env file to store these if you like
      account_id: '@CF_WORKERS_ACCOUNT_ID',
      api_token: '@CF_WORKERS_API_TOKEN',
      // Your CF script name
      script_name: 'fab-is-rad',
      // If set to true (default), then we'll only deploy to
      // fab-is-rad.[yourname].workers.dev, and you can skip zone_id/route
      workers_dev: false,
      // If ^ is false, you need these two. Zone ID is in your CF dashboard.
      zone_id: '@CF_ZONE_ID',
      // What public URL to serve on? You have to configure DNS separately
      route: 'https://fab-is-rad.com/*',

      // Optional additional bindings, only if you know you really need it
      custom_bindings: [
        {
          type: 'kv_namespace',
          name: 'GLOBAL_VAR_NAME',
          namespace_id: '...', // get from Cloudflare dashboard
        },
        // ...
      ],
    },
    // ...
  },
}

See https://fab.dev/guides/deploying for more info

Package Sidebar

Install

npm i @dev-spendesk/fab-deployer-cf-workers

Weekly Downloads

0

Version

1.0.0-rc.12

License

MIT

Unpacked Size

92.2 kB

Total Files

34

Last publish

Collaborators

  • developers-spendesk