Use the GitHub template to create a new project:
Once you've cloned your project and installed dependencies with npm install there are a few things to do:
- Create a
.env.localfile in the root of your project based off of.env.exampleand get the missing values from Kinde. You can create a new application in Kinde and get the values from there. - Update the
wrangler.tomlfile with the planned URL for the project. - Run the following command to start the development server:
npm run dev
# or start the server and open the app in a new browser tab
npm run dev -- --openTo create a production version of your app:
npm run buildYou can preview the production build with npm run preview.
It can be deployed to Cloudflare Workers by setting up the repo with Cloudflare Workers Build.
The values from Kinde will need to be added as Secrets in Cloudflare Workers dashboard.