RedwoodJS

中国镜像

# Builds

Work in Progress ⚠️

There's more to document here. In the meantime, you can check our community forum for answers.

Want to contribute? Redwood welcomes contributions and loves helping people become contributors. You can edit this doc here. If you have any questions, just ask for help! We're active on the forums and on discord.

# API

The api side of Redwood is transpiled by Babel into the ./api/dist folder.

# steps on Netlify

To emulate Netlify's build steps locally:

yarn rw build api
cd api
yarn zip-it-and-ship-it dist/functions/ zipballs/

Each lambda function in ./api/dist/functions is parsed by zip-it-and-ship-it resulting in a zip file per lambda function that contains all the dependencies required for that lambda function.

Note: The @netlify/zip-it-and-ship-it package needs to be installed as a dev dependency in api/. Use the command yarn workspace api add -D @netlify/zip-it-and-ship-it.

  • You can learn more about the package here.
  • For more information on AWS Serverless Deploy see these docs.

# Web

The web side of Redwood is packaged by Webpack into the ./web/dist folder.