Version: 2.0 On this page
Migrating from RedwoodJS to CedarJS
Required Steps
Search and replace all instances of "@redwoodjs/(.*)": "\d+\.\d+\.\d+"
with "@cedarjs/$1": "1.1.1" in all three package.json files.
Run yarn install to update your lock file.
Make a git commit with all changes as a checkpoint to make it easier to see
what changes in the following steps
Search and replace all instances of @redwoodjs in all files with
@cedarjs.
Also find all mentions of storybook-framework-redwoodjs-vite and replace
with storybook-framework-cedarjs
Pay attention to yarn.lock. If anything changed in there you probably have
to do some manual editing. (Reach out on
Discord if you need help.)
Delete all files and folders inside .redwood/ except README.md
Run yarn install and yarn cedar build. Make sure everything works as
expected.
Make a new git commit (or amend the previous one you did)
Optional, but Hightly Recommended, Steps
Update web/vite.config.ts to have import { cedar } from '@cedarjs/vite'
and plugins: [cedar()], instead of the older
import redwood from '@redwoodjs/vite' and plugins: [redwood()],. (Notice
that it's now a named import instead of a default import.)