mirror of
https://github.com/waynesutton/markdown-site.git
synced 2026-01-12 04:09:14 +00:00
fix: ensure vite installs and builds correctly on Netlify
This commit is contained in:
@@ -186,6 +186,8 @@ npm run sync:prod
|
||||
|
||||
### Netlify
|
||||
|
||||
[](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:
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user