Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,7 @@ AUTH_DISCORD_SECRET=""

# Drizzle
DATABASE_URL="postgresql://postgres:password@localhost:5432/strava-raceways"

# `npm run preview` runs the app in the Workers runtime, which reaches Postgres
# through the HYPERDRIVE binding; point it at the same database as DATABASE_URL.
CLOUDFLARE_HYPERDRIVE_LOCAL_CONNECTION_STRING_HYPERDRIVE="postgresql://postgres:password@localhost:5432/strava-raceways"
5 changes: 5 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ updates:
interval: "weekly"
cooldown:
default-days: 7
ignore:
# @opennextjs/cloudflare 500s on Next 16.4 (preview-props.json manifest).
# Drop this once opennextjs/opennextjs-cloudflare#1356 ships.
- dependency-name: "next"
versions: [">=16.4.0"]

- package-ecosystem: "github-actions"
directory: "/"
Expand Down
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,9 @@ yarn-error.log*
.idea
.venv/
.tfjs-env/

# cloudflare
.open-next
.wrangler
.dev.vars*
!.dev.vars.example
4 changes: 4 additions & 0 deletions drizzle.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ import type { Config } from "drizzle-kit";

import { env } from "~/env";

if (!env.DATABASE_URL) {
throw new Error("Set DATABASE_URL to run drizzle-kit.");
}

export default {
schema: "./src/server/db/schema.ts",
dialect: "postgresql",
Expand Down
5 changes: 5 additions & 0 deletions open-next.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { defineCloudflareConfig } from "@opennextjs/cloudflare";

// Pages are either fully static or rendered per request; nothing uses ISR or
// `revalidate`, so there is no incremental cache to configure.
export default defineCloudflareConfig({});
Loading
Loading