-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support deploy config API with Blobs (#5565)
* feat: support deploy config API with Blobs * feat: set `experimentalRegion`
- Loading branch information
1 parent
626fa44
commit a94079a
Showing
7 changed files
with
158 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 6 additions & 6 deletions
12
packages/build/tests/blobs_upload/fixtures/src_with_blobs/build.mjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
import { mkdir, writeFile } from 'node:fs/promises' | ||
|
||
await mkdir('.netlify/blobs/deploy/nested', { recursive: true }) | ||
await mkdir('.netlify/deploy/v1/blobs/deploy/nested', { recursive: true }) | ||
|
||
await Promise.all([ | ||
writeFile('.netlify/blobs/deploy/something.txt', 'some value'), | ||
writeFile('.netlify/blobs/deploy/with-metadata.txt', 'another value'), | ||
writeFile('.netlify/blobs/deploy/$with-metadata.txt.json', JSON.stringify({ "meta": "data", "number": 1234 })), | ||
writeFile('.netlify/blobs/deploy/nested/file.txt', 'file value'), | ||
writeFile('.netlify/blobs/deploy/nested/$file.txt.json', JSON.stringify({ "some": "metadata" })), | ||
writeFile('.netlify/deploy/v1/blobs/deploy/something.txt', 'some value'), | ||
writeFile('.netlify/deploy/v1/blobs/deploy/with-metadata.txt', 'another value'), | ||
writeFile('.netlify/deploy/v1/blobs/deploy/$with-metadata.txt.json', JSON.stringify({ "meta": "data", "number": 1234 })), | ||
writeFile('.netlify/deploy/v1/blobs/deploy/nested/file.txt', 'file value'), | ||
writeFile('.netlify/deploy/v1/blobs/deploy/nested/$file.txt.json', JSON.stringify({ "some": "metadata" })), | ||
]) |
11 changes: 11 additions & 0 deletions
11
packages/build/tests/blobs_upload/fixtures/src_with_blobs_legacy/build.mjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { mkdir, writeFile } from 'node:fs/promises' | ||
|
||
await mkdir('.netlify/blobs/deploy/nested', { recursive: true }) | ||
|
||
await Promise.all([ | ||
writeFile('.netlify/blobs/deploy/something.txt', 'some value'), | ||
writeFile('.netlify/blobs/deploy/with-metadata.txt', 'another value'), | ||
writeFile('.netlify/blobs/deploy/$with-metadata.txt.json', JSON.stringify({ "meta": "data", "number": 1234 })), | ||
writeFile('.netlify/blobs/deploy/nested/file.txt', 'file value'), | ||
writeFile('.netlify/blobs/deploy/nested/$file.txt.json', JSON.stringify({ "some": "metadata" })), | ||
]) |
4 changes: 4 additions & 0 deletions
4
packages/build/tests/blobs_upload/fixtures/src_with_blobs_legacy/netlify.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[build] | ||
command = "node build.mjs" | ||
base = "/" | ||
publish = "/dist" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters