Skip to content

Conversation

@danielroe
Copy link
Member

πŸ”— Linked issue

❓ Type of change

  • πŸ“– Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • πŸ‘Œ Enhancement (improving an existing functionality)
  • ✨ New feature (a non-breaking change that adds functionality)
  • 🧹 Chore (updates to the build process or auxiliary tools and libraries)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

πŸ“š Description

This improves DX for dev server to allow all hosts to connect to the dev server when the --public flag is passed or a hostname that doesn't match ['localhost', '127.0.0.1', '::1'].

We could also consider printing a message to warn users of the potential issues with a public dev server.

@github-actions
Copy link
Contributor

github-actions bot commented Jan 28, 2025

Bundle Stats β€” nuxi size comparison

Hey there, this message comes from a GitHub action that helps you and reviewers to understand how these changes affect the size of this project's bundle.

As this PR is updated, I'll keep you updated on how the bundle size is impacted.

Total

Files count Total bundle size % Changed
54 β†’ 53 5.67 MB β†’ 5.67 MB (+235 B) +0.00%
Changeset
File Ξ” Size
src/utils/dev.ts πŸ“ˆ +548 B (+7.36%) 7.27 kB β†’ 7.81 kB
src/commands/dev.ts πŸ“‰ -160 B (-2.11%) 7.4 kB β†’ 7.25 kB
src/commands/dev-child.ts πŸ“‰ -153 B (-7.14%) 2.09 kB β†’ 1.94 kB
View detailed bundle breakdown

Added

No assets were added

Removed

Asset File Size % Changed
shared/nuxi.CeDCJTol.mjs 18.95 kB β†’ 0 B (-18.95 kB) -100%

Bigger

Asset File Size % Changed
chunks/index2.mjs 909.09 kB β†’ 928.04 kB (+18.95 kB) +2.08%
chunks/dev2.mjs 69.1 kB β†’ 69.63 kB (+548 B) +0.77%

Smaller

Asset File Size % Changed
chunks/dev.mjs 9.99 kB β†’ 9.83 kB (-160 B) -1.56%
chunks/dev-child.mjs 2.09 kB β†’ 1.94 kB (-153 B) -7.14%

Unchanged

Asset File Size % Changed
index.mjs 188 B 0%
chunks/prompt.mjs 42.92 kB 0%
chunks/add.mjs 6.83 kB 0%
chunks/analyze.mjs 3.18 kB 0%
chunks/build.mjs 1.97 kB 0%
chunks/cleanup.mjs 471 B 0%
chunks/devtools.mjs 764 B 0%
chunks/generate.mjs 388 B 0%
chunks/info.mjs 4.39 kB 0%
chunks/init.mjs 805.49 kB 0%
chunks/index.mjs 274 B 0%
chunks/prepare.mjs 984 B 0%
chunks/preview.mjs 2.84 kB 0%
chunks/test.mjs 1.16 kB 0%
chunks/typecheck.mjs 1.74 kB 0%
chunks/upgrade.mjs 6.28 kB 0%
chunks/satisfies.mjs 116 B 0%
chunks/main.mjs 15.34 kB 0%
chunks/index3.mjs 17.08 kB 0%
chunks/xdg-open.mjs 25.32 kB 0%
chunks/node.mjs 134.34 kB 0%
chunks/index4.mjs 1.24 kB 0%
chunks/index5.mjs 6.55 kB 0%
chunks/index6.mjs 70.29 kB 0%
chunks/multipart-parser.mjs 5.11 kB 0%
chunks/add2.mjs 12.02 kB 0%
chunks/search.mjs 42.99 kB 0%
chunks/index7.mjs 5.87 kB 0%
chunks/index8.mjs 886.32 kB 0%
chunks/multipart-parser2.mjs 4.58 kB 0%
shared/nuxi.BqbbTtZ1.mjs 76.16 kB 0%
shared/nuxi.BX35bYtK.mjs 804 B 0%
shared/nuxi.C06cIqym.mjs 294 B 0%
shared/nuxi.DdI-vRyV.mjs 1.54 kB 0%
shared/nuxi.BSm0_9Hr.mjs 107 B 0%
shared/nuxi.jHNMu6i2.mjs 1.34 kB 0%
shared/nuxi.BwIereCt.mjs 17.68 kB 0%
shared/nuxi.CVCE_T29.mjs 836 B 0%
shared/nuxi.D0__QBAb.mjs 14.64 kB 0%
shared/nuxi.Cb8SV1Ml.mjs 6.13 kB 0%
shared/nuxi.WdkwsuT4.mjs 8.87 kB 0%
shared/nuxi.SEuYCQjN.mjs 2.02 MB 0%
shared/nuxi.E-ZsRS8r.mjs 943 B 0%
shared/nuxi.BgENdoyd.mjs 1.76 kB 0%
shared/nuxi.CDPIBJHk.mjs 152.13 kB 0%
shared/nuxi.DsJ8r8e5.mjs 285.08 kB 0%
shared/nuxi.ChFrgAY-.mjs 5.71 kB 0%
shared/nuxi.CDQkQpHL.mjs 5.09 kB 0%
shared/nuxi.BPuj-7ta.mjs 42.89 kB 0%

@github-actions
Copy link
Contributor

github-actions bot commented Jan 28, 2025

Bundle Stats β€” nuxt-cli size comparison

Hey there, this message comes from a GitHub action that helps you and reviewers to understand how these changes affect the size of this project's bundle.

As this PR is updated, I'll keep you updated on how the bundle size is impacted.

Total

Files count Total bundle size % Changed
29 78.66 kB β†’ 78.85 kB (+200 B) +0.25%
Changeset
File Ξ” Size
home/runner/work/cli/cli/packages/nuxi/src/utils/dev.ts πŸ“ˆ +548 B (+7.37%) 7.26 kB β†’ 7.8 kB
home/runner/work/cli/cli/packages/nuxi/src/commands/dev.ts πŸ“‰ -195 B (-2.57%) 7.4 kB β†’ 7.21 kB
home/runner/work/cli/cli/packages/nuxi/src/commands/dev-child.ts πŸ“‰ -153 B (-7.12%) 2.1 kB β†’ 1.95 kB
View detailed bundle breakdown

Added

No assets were added

Removed

No assets were removed

Bigger

Asset File Size % Changed
chunks/dev2.mjs 7.26 kB β†’ 7.8 kB (+548 B) +7.37%

Smaller

Asset File Size % Changed
chunks/dev.mjs 7.4 kB β†’ 7.21 kB (-195 B) -2.57%
chunks/dev-child.mjs 2.1 kB β†’ 1.95 kB (-153 B) -7.12%

Unchanged

Asset File Size % Changed
index.mjs 200 B 0%
chunks/add.mjs 6.83 kB 0%
chunks/analyze.mjs 3.18 kB 0%
chunks/build.mjs 1.97 kB 0%
chunks/cleanup.mjs 471 B 0%
chunks/devtools.mjs 763 B 0%
chunks/generate.mjs 388 B 0%
chunks/info.mjs 4.39 kB 0%
chunks/init.mjs 5.21 kB 0%
chunks/index.mjs 274 B 0%
chunks/prepare.mjs 984 B 0%
chunks/preview.mjs 2.84 kB 0%
chunks/test.mjs 1.16 kB 0%
chunks/typecheck.mjs 1.74 kB 0%
chunks/upgrade.mjs 6.28 kB 0%
chunks/add2.mjs 11.83 kB 0%
chunks/search.mjs 2.94 kB 0%
shared/cli.ZjQ19XGU.mjs 5.48 kB 0%
shared/cli.mEn9q49T.mjs 804 B 0%
shared/cli.BnJuNnzK.mjs 294 B 0%
shared/cli.BSm0_9Hr.mjs 107 B 0%
shared/cli.DlcAx0De.mjs 1.04 kB 0%
shared/cli.Bc1MVia1.mjs 1.23 kB 0%
shared/cli.tKPzVzbf.mjs 836 B 0%
shared/cli.Bzv_ksqZ.mjs 107 B 0%
shared/cli.C935N1ss.mjs 687 B 0%

@github-actions
Copy link
Contributor

github-actions bot commented Jan 28, 2025

Bundle Stats β€” create-nuxt-app size comparison

Hey there, this message comes from a GitHub action that helps you and reviewers to understand how these changes affect the size of this project's bundle.

As this PR is updated, I'll keep you updated on how the bundle size is impacted.

Total

Files count Total bundle size % Changed
6 1.03 MB 0%

Changeset

No files were changed

View detailed bundle breakdown

Added

No assets were added

Removed

No assets were removed

Bigger

No assets were bigger

Smaller

No assets were smaller

Unchanged

Asset File Size % Changed
index.mjs 1.01 kB 0%
chunks/index.mjs 70.29 kB 0%
chunks/multipart-parser.mjs 5.11 kB 0%
chunks/prompt.mjs 42.92 kB 0%
chunks/satisfies.mjs 43 kB 0%
shared/create-nuxt-app.DGIhHoEU.mjs 897.33 kB 0%

@pkg-pr-new
Copy link

pkg-pr-new bot commented Jan 28, 2025

Open in Stackblitz

npm i https://pkg.pr.new/create-nuxt-app@707
npm i https://pkg.pr.new/nuxi@707
npm i https://pkg.pr.new/@nuxt/cli@707

commit: 77f3f4a

@danielroe danielroe merged commit 5e021b5 into main Jan 28, 2025
11 checks passed
@danielroe danielroe deleted the feat/public-hosts branch January 28, 2025 21:45
@danielroe danielroe mentioned this pull request Jan 28, 2025
This was referenced Jan 29, 2025
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.

3 participants