diff --git a/netlify.toml b/netlify.toml index 2140b59..2a7f40d 100644 --- a/netlify.toml +++ b/netlify.toml @@ -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 = "/*"