mirror of
https://github.com/PR0M3TH3AN/Archivox.git
synced 2025-09-08 06:58:43 +00:00
Merge pull request #15 from PR0M3TH3AN/codex/fix-deploy-directory-not-found-error
Fix CLI build and update Netlify command
This commit is contained in:
@@ -229,7 +229,7 @@ To make DocForge truly user-friendly, include these instructions in the starter
|
|||||||
- `netlify.toml`:
|
- `netlify.toml`:
|
||||||
```toml
|
```toml
|
||||||
[build]
|
[build]
|
||||||
command = "npm run build"
|
command = "CI= npm run build" # Avoid CI treating warnings as errors
|
||||||
publish = "_site"
|
publish = "_site"
|
||||||
```
|
```
|
||||||
- Connect the repo to Netlify by selecting **New site from Git** in your Netlify dashboard and picking this repository. Netlify will read `netlify.toml` so no extra setup is required. Once linked, pushes to `main` automatically build and deploy the site and pull requests get preview URLs.
|
- Connect the repo to Netlify by selecting **New site from Git** in your Netlify dashboard and picking this repository. Netlify will read `netlify.toml` so no extra setup is required. Once linked, pushes to `main` automatically build and deploy the site and pull requests get preview URLs.
|
||||||
|
@@ -1,3 +1,3 @@
|
|||||||
[build]
|
[build]
|
||||||
command = "npm run build"
|
command = "CI= npm run build"
|
||||||
publish = "_site"
|
publish = "_site"
|
||||||
|
@@ -166,3 +166,10 @@ async function generate({ contentDir = 'content', outputDir = '_site', configPat
|
|||||||
}
|
}
|
||||||
|
|
||||||
module.exports = { generate, buildNav };
|
module.exports = { generate, buildNav };
|
||||||
|
|
||||||
|
if (require.main === module) {
|
||||||
|
generate().catch(err => {
|
||||||
|
console.error(err);
|
||||||
|
process.exit(1);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
Reference in New Issue
Block a user