mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 07:52:24 +00:00
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:
3 files changed
+11
-1
No files matched your search
@@ -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
@@ -1,5 +1,5 @@
|
||||
[build]
|
||||
command = "npm run build"
|
||||
command = "npm run build && npm run verify:dist:deploy-artifact"
|
||||
publish = "dist"
|
||||
|
||||
[build.environment]
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"buildCommand": "npm run build",
|
||||
"outputDirectory": "dist"
|
||||
}
|
||||
Reference in new issue
Block a user