Skip to content

Commit

Permalink
fix: support Blobs in unlinked sites (#6279)
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardoboucas committed Jan 2, 2024
1 parent 8c1084c commit d74c00d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib/blobs/blobs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const printLocalBlobsNotice = () => {
}

const startBlobsServer = async (debug: boolean, projectRoot: string, token: string) => {
const directory = path.resolve(projectRoot, getPathInProject(['blobs-serves']))
const directory = path.resolve(projectRoot, getPathInProject(['blobs-serve']))
const server = new BlobsServer({
debug,
directory,
Expand Down
2 changes: 1 addition & 1 deletion src/lib/functions/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ export const createHandler = function (options) {
'client-ip': [remoteAddress],
'x-nf-client-connection-ip': [remoteAddress],
'x-nf-account-id': [options.accountId],
'x-nf-site-id': [options?.siteInfo?.id] ?? 'unlinked',
'x-nf-site-id': [options?.siteInfo?.id ?? 'unlinked'],
[efHeaders.Geo]: Buffer.from(JSON.stringify(geoLocation)).toString('base64'),
}).reduce((prev, [key, value]) => ({ ...prev, [key]: Array.isArray(value) ? value : [value] }), {})
const rawQuery = new URLSearchParams(requestQuery).toString()
Expand Down

2 comments on commit d74c00d

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📊 Benchmark results

  • Dependency count: 1,399
  • Package size: 405 MB
  • Number of ts-expect-error directives: 1,231

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📊 Benchmark results

  • Dependency count: 1,399
  • Package size: 405 MB
  • Number of ts-expect-error directives: 1,231

Please sign in to comment.