@static

@static defines S3 buckets for hosting static assets

Example

This .arc file defines static buckets:

@app
testapp

@static
staging test-bukkit
production main-bukkit

Note: S3 buckets are global to AWS so if at first you don't succeed, try picking another bucket name

Locally, if the hidden folder /.static exists, whenever you run npx deploy the contents are synchronized to the staging bucket. If you set ARC_DEPLOY=production the contents of /.static are deployed to the production bucket. This allows the frontend dev to use whatever build tooling they like (ParcelJS, Webpack, Browserify, Babel, etc).

Next: Create dynamo tables with @tables