Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: also run blobs on ntl serve #6183

Merged
merged 4 commits into from
Nov 20, 2023
Merged

fix: also run blobs on ntl serve #6183

merged 4 commits into from
Nov 20, 2023

Conversation

Skn0tt
Copy link
Contributor

@Skn0tt Skn0tt commented Nov 17, 2023

Noticed that we're only running blobs for ntl dev, but not for ntl serve. That's probably not right! This PR also starts the blob server during ntl serve.

@Skn0tt Skn0tt self-assigned this Nov 17, 2023
@Skn0tt Skn0tt requested a review from a team as a code owner November 17, 2023 08:32
Copy link

github-actions bot commented Nov 17, 2023

📊 Benchmark results

Comparing with f1986d9

  • Dependency count: 1,408 (no change)
  • Package size: 421 MB ⬇️ 0.00% decrease vs. f1986d9

eduardoboucas
eduardoboucas previously approved these changes Nov 17, 2023
@@ -71,7 +71,7 @@ const serve = async (options, command) => {
// Netlify Build are loaded.
await getInternalFunctionsDir({ base: site.root, ensureExists: true })

let settings = /** @type {import('../../utils/types.js').ServerSettings} */ ({})
let settings = /** @type {import('../../utils/types.js').ServerSettings} */ {}
Copy link
Member

Choose a reason for hiding this comment

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

nit: Since you're touching this line, could you use the actual type instead of the JSDoc now that this is TypeScript?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done in 9eea77d

Comment on lines 75 to 76
// @ts-expect-error TS(2571) FIXME: Type '{}' is not assignable to type 'ServerSettings'.
let settings: ServerSettings = {}
Copy link
Member

Choose a reason for hiding this comment

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

We can get rid of the ts-expect-error ugliness if you change L84 to return exit(1) (GitHub won't let me add a suggestion for that line).

Suggested change
// @ts-expect-error TS(2571) FIXME: Type '{}' is not assignable to type 'ServerSettings'.
let settings: ServerSettings = {}
let settings: ServerSettings

Copy link
Contributor Author

Choose a reason for hiding this comment

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

smart! done in 2719485

eduardoboucas
eduardoboucas previously approved these changes Nov 20, 2023
@eduardoboucas eduardoboucas enabled auto-merge (squash) November 20, 2023 13:08
@eduardoboucas eduardoboucas merged commit 0ecd72e into main Nov 20, 2023
35 checks passed
@eduardoboucas eduardoboucas deleted the blobs-serve branch November 20, 2023 13:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants