Skip to content

Commit

Permalink
Update netlify.toml for VitePress site deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
Thavarshan committed Sep 30, 2024
1 parent a82d866 commit 842717d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
[build]
command = "npm run docs:build"
publish = "docs/.vitepress/dist"
base = "docs/empty-netlify/" # Point to the placeholder directory without any dependencies
publish = "../.vitepress/dist" # Your actual publish directory where VitePress builds the static files
command = "cd ../ && npm install && npm run docs:build" # Run npm install and build the VitePress site

[context.production.environment]
NETLIFY_SKIP_COMPOSER_INSTALL = "true"
NODE_VERSION = "18" # Optional: specify the Node.js version if needed

[[redirects]]
from = "/*"
Expand Down

0 comments on commit 842717d

Please sign in to comment.