Skip to content

Commit 001d307

Browse files
committed
deploy to netlify
1 parent 3322c0e commit 001d307

File tree

9 files changed

+6756
-893
lines changed

9 files changed

+6756
-893
lines changed

.github/workflows/web_cd.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ jobs:
1515
- run: pnpm -F @hypr/web run build
1616
- run: pnpm -F @hypr/web run deploy
1717
env:
18-
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
19-
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
18+
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
19+
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,6 @@ restate-data
1515
internal
1616
.turbo
1717
CLAUDE.md
18+
19+
# Local Netlify folder
20+
.netlify

apps/web/.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ dist-ssr
88
.tanstack
99
.output
1010
.vinxi
11-
.wrangler
1211
.content-collections
12+
.netlify

apps/web/Taskfile.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ tasks:
44
deploy:
55
dir: .
66
cmds:
7-
- npx wrangler deploy
7+
- netlify deploy --prod
88

99
env-sample:
1010
dir: .
@@ -16,7 +16,7 @@ tasks:
1616
cmds:
1717
- |
1818
grep -v '^#' ./.env.prod | grep '=' | while IFS='=' read -r key value; do
19-
echo "$value" | npx wrangler secret put "$key" --config ./wrangler.json
19+
netlify env:set "$key" "$value" --context production --secret
2020
done
2121
2222
supabase:

apps/web/netlify.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[build]
2+
command = "pnpm -F @hypr/web build"
3+
publish = "dist/client"
4+
5+
[build.environment]
6+
NODE_VERSION = "22"

apps/web/package.json

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,32 +6,32 @@
66
"dev": "env-cmd -f ./.env -- vite dev --port 3000",
77
"build": "vite build",
88
"serve": "vite preview",
9-
"deploy": "wrangler deploy",
9+
"deploy": "npx netlify deploy --prod",
1010
"typecheck": "pnpm -F @hypr/web build && (cd supabase/functions/llm && deno check index.ts) && (cd supabase/functions/stripe && deno check index.ts) && tsc --noEmit"
1111
},
1212
"dependencies": {
13-
"@cloudflare/vite-plugin": "^1.13.17",
1413
"@hypr/ui": "workspace:*",
1514
"@hypr/utils": "workspace:*",
16-
"@iconify-icon/react": "^3.0.2",
17-
"@mux/mux-player-react": "^3.7.0",
18-
"@nangohq/frontend": "^0.69.5",
19-
"@nangohq/node": "^0.69.5",
15+
"@iconify-icon/react": "^3.0.3",
16+
"@mux/mux-player-react": "^3.8.0",
17+
"@nangohq/frontend": "^0.69.7",
18+
"@nangohq/node": "^0.69.7",
19+
"@netlify/vite-plugin-tanstack-start": "^1.1.8",
2020
"@sentry/tanstackstart-react": "^10.22.0",
2121
"@stripe/stripe-js": "^8.2.0",
2222
"@supabase/ssr": "^0.7.0",
23-
"@supabase/supabase-js": "^2.77.0",
23+
"@supabase/supabase-js": "^2.78.0",
2424
"@t3-oss/env-core": "^0.13.8",
2525
"@tailwindcss/vite": "^4.1.16",
2626
"@tanstack/react-devtools": "^0.7.11",
2727
"@tanstack/react-form": "^1.23.8",
28-
"@tanstack/react-query": "^5.90.5",
28+
"@tanstack/react-query": "^5.90.6",
2929
"@tanstack/react-query-devtools": "^5.90.2",
30-
"@tanstack/react-router": "^1.133.36",
31-
"@tanstack/react-router-devtools": "^1.133.36",
32-
"@tanstack/react-router-ssr-query": "^1.133.36",
33-
"@tanstack/react-start": "^1.134.0",
34-
"@tanstack/router-plugin": "^1.133.36",
30+
"@tanstack/react-router": "^1.134.9",
31+
"@tanstack/react-router-devtools": "^1.134.9",
32+
"@tanstack/react-router-ssr-query": "^1.134.9",
33+
"@tanstack/react-start": "^1.134.9",
34+
"@tanstack/router-plugin": "^1.134.9",
3535
"drizzle-orm": "^0.44.7",
3636
"exa-js": "^1.10.2",
3737
"lucide-react": "^0.544.0",
@@ -58,10 +58,10 @@
5858
"@types/react-dom": "^19.2.2",
5959
"@vitejs/plugin-react": "^5.1.0",
6060
"env-cmd": "^11.0.0",
61-
"jsdom": "^27.0.1",
61+
"jsdom": "^27.1.0",
62+
"netlify": "^23.9.5",
6263
"typescript": "^5.9.3",
6364
"vite": "^7.1.12",
64-
"web-vitals": "^5.1.0",
65-
"wrangler": "^4.45.2"
65+
"web-vitals": "^5.1.0"
6666
}
6767
}

apps/web/vite.config.ts

Lines changed: 6 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,20 @@
1+
import contentCollections from "@content-collections/vite";
2+
import netlify from "@netlify/vite-plugin-tanstack-start";
13
import tailwindcss from "@tailwindcss/vite";
24
import { tanstackStart } from "@tanstack/react-start/plugin/vite";
35
import viteReact from "@vitejs/plugin-react";
46
import { defineConfig } from "vite";
57
import viteTsConfigPaths from "vite-tsconfig-paths";
68

7-
import { cloudflare } from "@cloudflare/vite-plugin";
8-
import contentCollections from "@content-collections/vite";
9-
import { wrapVinxiConfigWithSentry } from "@sentry/tanstackstart-react";
10-
11-
const config = defineConfig(({ mode }) => ({
9+
const config = defineConfig(() => ({
1210
plugins: [
13-
// Only use Cloudflare plugin in production to avoid CSP issues in dev
14-
...(mode === "production" ? [cloudflare({ viteEnvironment: { name: "ssr" } })] : []),
11+
netlify(),
1512
contentCollections(),
16-
// this is the plugin that enables path aliases
17-
viteTsConfigPaths({
18-
projects: ["./tsconfig.json"],
19-
}),
13+
viteTsConfigPaths({ projects: ["./tsconfig.json"] }),
2014
tailwindcss(),
2115
tanstackStart(),
2216
viteReact(),
2317
],
2418
}));
2519

26-
export default wrapVinxiConfigWithSentry(config, {
27-
org: process.env.VITE_SENTRY_ORG,
28-
project: process.env.VITE_SENTRY_PROJECT,
29-
authToken: process.env.SENTRY_AUTH_TOKEN,
30-
// Only print logs for uploading source maps in CI
31-
// Set to `true` to suppress logs
32-
silent: !process.env.CI,
33-
});
20+
export default config;

apps/web/wrangler.json

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)