fix: ensure vite installs and builds correctly on Netlify

This commit is contained in:
Wayne Sutton
2025-12-14 12:06:11 -08:00
parent ad7f07ffe1
commit 59e9c655d4
3 changed files with 5 additions and 2 deletions

View File

@@ -186,6 +186,8 @@ npm run sync:prod
### Netlify
[![Netlify Status](https://api.netlify.com/api/v1/badges/d8c4d83d-7486-42de-844b-6f09986dc9aa/deploy-status)](https://app.netlify.com/projects/markdowncms/deploys)
For detailed setup, see the [Convex Netlify Deployment Guide](https://docs.convex.dev/production/hosting/netlify).
1. Deploy Convex functions to production:

View File

@@ -1,9 +1,10 @@
[build]
command = "npm install && npx convex deploy --cmd 'npm run build'"
command = "npm ci && npx convex deploy --cmd 'npm run build'"
publish = "dist"
[build.environment]
NODE_VERSION = "20"
NPM_FLAGS = "--include=dev"
# Convex HTTP endpoints
# RSS feeds

View File

@@ -6,7 +6,7 @@
"scripts": {
"dev": "vite",
"dev:convex": "convex dev",
"build": "npx vite build",
"build": "vite build",
"typecheck": "tsc --noEmit",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview",