Skip to content

What we did to achieve Centarui

Brandon G. Neri edited this page Sep 13, 2021 · 2 revisions

This might be deleted in the future. For now, this page works to archive some useful notes for what we did to make Centauri usable with our current technologies.

  • Created a project with Snowpack TypeScript React
  • Added the functions under /src/functions/*.tsx
  • For now, functions needs to be compiled with Snowpack before deploying it
  • Added netlify.toml with functions pointing to /build/dist/functions, we might need to create a later script for make it usable on the CI

UPDATE:

  • Dropped support for using an existing "scaffolder" like Snowpack or Vite. For now, we're using plain tsc to compile/transpiler TSX into JS files
  • Our most difficult challenge at the time is to integrate with a normal React development experience seamlessly with the functions.
Clone this wiki locally