Merge pull request #2327 from PR0M3TH3AN/codex/update-deployment-pipeline-for-dist-folder

[ci] Enforce dist-based deployment & verify deploy artifact
This commit is contained in:
thePR0M3TH3AN authored and GitHub committed 2026-02-10 17:15:47 -05:00
commit 6fff162e0a
3 files changed
+11 -1

No files matched your search

+6
View File
@@ -342,6 +342,12 @@ The generated `css/tailwind.generated.css` artifact is ignored in git. CI
workflows and Netlify deploys run `npm run build` to produce the compiled
stylesheet during deployment, so source changes are all you need to commit.
Deploy targets must publish the `dist/` directory as the web root (never the
repository root). CI enforces deploy artifact integrity with
`npm run verify:dist:deploy-artifact` immediately after `npm run build`, and
hosts that support a publish/output directory (for example Netlify and Vercel)
should be configured to use `dist`.
#### Netlify cache policy for safe fast rollouts
bitvid uses path-class cache rules so deployments propagate quickly without
+1 -1
View File
@@ -1,5 +1,5 @@
[build]
command = "npm run build"
command = "npm run build && npm run verify:dist:deploy-artifact"
publish = "dist"
[build.environment]
+4
View File
@@ -0,0 +1,4 @@
{
"buildCommand": "npm run build",
"outputDirectory": "dist"
}