-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from rifont/upgrade-framework
refactor(api): streamline API routes and workflows
- Loading branch information
Showing
19 changed files
with
4,902 additions
and
4,620 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Novu Sync | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
# https://github.com/novuhq/actions-novu-sync | ||
- name: Sync State to Novu | ||
uses: novuhq/actions-novu-sync@v2 | ||
with: | ||
# The secret key used to authenticate with Novu Cloud | ||
# To get the secret key, go to https://web.novu.co/api-keys. | ||
# Required. | ||
secret-key: ${{ secrets.NOVU_SECRET_KEY }} | ||
|
||
# The publicly available endpoint hosting the bridge application | ||
# where notification entities (eg. workflows, topics) are defined. | ||
# Required. | ||
bridge-url: https://novu-ai-digest.vercel.app/api/novu | ||
|
||
# The Novu Cloud API URL to sync with. | ||
# Optional. | ||
# Defaults to https://api.novu.co | ||
api-url: https://api.novu.co |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import { serve } from "@novu/framework/next"; | ||
import { aiDigest } from "@/lib/novu/workflows"; | ||
|
||
export const { GET, POST, OPTIONS } = serve({ workflows: [aiDigest] }); |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.