CognxSafeTrack Claude Sonnet 4.6 commited on
Commit ·
ced47d3
1
Parent(s): 3b4544a
chore(netlify): add netlify.toml for automatic admin frontend deploys
Browse filesConfigures Netlify to build apps/admin on every push to main:
- Installs pnpm, generates Prisma client, builds shared-types, then admin
- Publishes apps/admin/dist with SPA redirect fallback
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- netlify.toml +12 -0
netlify.toml
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[build]
|
| 2 |
+
base = "."
|
| 3 |
+
command = "npm install -g pnpm && pnpm install --frozen-lockfile && pnpm --filter @repo/database generate && pnpm --filter @repo/shared-types build && pnpm --filter admin build"
|
| 4 |
+
publish = "apps/admin/dist"
|
| 5 |
+
|
| 6 |
+
[build.environment]
|
| 7 |
+
NODE_VERSION = "20"
|
| 8 |
+
|
| 9 |
+
[[redirects]]
|
| 10 |
+
from = "/*"
|
| 11 |
+
to = "/index.html"
|
| 12 |
+
status = 200
|