@everymundo/em-cloudflare-route
v0.0.0
Published
Easily provision cloudflare route [Serverless Components](https://github.com/serverless/components).
Downloads
2
Maintainers
Readme
em-cloudflare-route
Easily provision cloudflare route Serverless Components.
1. Install
$ npm i @everymundo/[email protected]
2. Create
$ mkdir demo de && cd demo
Just create a serverless.yml
file
$ touch serverless.yml
$ touch .env # your CF credentials
# .env
CF_ACCOUNT_ID=
CF_EMAIL=
CF_KEY=
CF_ZONE_ID=
3. Configure
Create a serverless.yml
file:
# serverless.yml
name: demo
stage: dev
plugins:
- serverless-dotenv-plugin
demo:
#component: '@everymundo/[email protected]'
component: '../'
inputs:
routeName: al-dev.com
workerName: geoip
Use the environment variables CF_ACCOUNT_ID
, CF_EMAIL
, CF_KEY
and CF_ZONE_ID
to specify your Cloudflare API credentials.
4. Deploy
$ severless
New to Components?
Checkout the Serverless Components repo for more information.