Skip to content

Commit 3896ca8

Browse files
committed
Initial commit
0 parents  commit 3896ca8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+8634
-0
lines changed

.env.local.example

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Authenticate to Trigger.dev using your dev API key: https://trigger.dev/docs/apikeys
2+
TRIGGER_SECRET_KEY="<TRIGGER_SECRET_KEY>"
3+
# https://uploadthing.com/
4+
UPLOADTHING_TOKEN="<UPLOADTHING_TOKEN>"
5+
# https://fal.ai/
6+
FAL_KEY="<FAL_KEY>"
7+
# https://platform.openai.com/docs
8+
OPENAI_API_KEY="<OPENAI_API_KEY>"

.gitignore

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.js
7+
.yarn/install-state.gz
8+
9+
# testing
10+
/coverage
11+
12+
# next.js
13+
/.next/
14+
/out/
15+
16+
# production
17+
/build
18+
19+
# misc
20+
.DS_Store
21+
*.pem
22+
23+
# debug
24+
npm-debug.log*
25+
yarn-debug.log*
26+
yarn-error.log*
27+
28+
# local env files
29+
.env*.local
30+
31+
# vercel
32+
.vercel
33+
34+
# typescript
35+
*.tsbuildinfo
36+
next-env.d.ts
37+
.trigger

README.md

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
## Trigger.dev Realtime Demo
2+
3+
This demo shows off a variety of features of [Trigger.dev Realtime](https://trigger.dev/docs/realtime)
4+
5+
## Getting Started
6+
7+
Copy the `.env.local.example` file to `.env.local` and fill in the values for the various services, including Trigger.dev.
8+
9+
If you haven't already, create a project on Trigger.dev and copy the project ref into the `trigger.config.ts` file.
10+
11+
Then, run the Next.js development server and the Trigger.dev dev CLI command in a separate terminal.
12+
13+
```bash
14+
npm install
15+
npm run dev
16+
npm run dev:trigger # Run this in a separate terminal
17+
```
18+
19+
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
20+
21+
## Learn More
22+
23+
To learn more about Trigger.dev Realtime, take a look at the following resources:
24+
25+
- [Trigger.dev Documentation](https://trigger.dev/docs) - learn about Trigger.dev and its features.
26+
- [Realtime docs](https://trigger.dev/docs/realtime) - learn about the Realtime feature of Trigger.dev.
27+
- [React hooks](https://trigger.dev/docs/frontend/react-hooks) - learn about the React hooks provided by Trigger.dev.

components.json

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"$schema": "https://ui.shadcn.com/schema.json",
3+
"style": "new-york",
4+
"rsc": true,
5+
"tsx": true,
6+
"tailwind": {
7+
"config": "tailwind.config.ts",
8+
"css": "src/app/globals.css",
9+
"baseColor": "neutral",
10+
"cssVariables": true,
11+
"prefix": ""
12+
},
13+
"aliases": {
14+
"components": "@/components",
15+
"utils": "@/lib/utils",
16+
"ui": "@/components/ui",
17+
"lib": "@/lib",
18+
"hooks": "@/hooks"
19+
}
20+
}

next.config.mjs

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
/** @type {import('next').NextConfig} */
2+
import NextBundleAnalyzer from "@next/bundle-analyzer";
3+
4+
const nextConfig = {
5+
images: {
6+
remotePatterns: [
7+
{
8+
protocol: "https",
9+
hostname: "utfs.io",
10+
pathname: "/a/ze1ekrd9t9/*",
11+
},
12+
{
13+
protocol: "https",
14+
hostname: "v2.fal.media",
15+
},
16+
{
17+
protocol: "https",
18+
hostname: "v3.fal.media",
19+
},
20+
{
21+
protocol: "https",
22+
hostname: "fal.media",
23+
},
24+
{
25+
protocol: "https",
26+
hostname: "storage.googleapis.com",
27+
},
28+
],
29+
},
30+
};
31+
32+
export default NextBundleAnalyzer({
33+
enabled: process.env.ANALYZE === "true",
34+
openAnalyzer: true,
35+
})(nextConfig);

0 commit comments

Comments
 (0)