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

feat: add Zeabur deployment #1942

Merged
merged 4 commits into from
Nov 30, 2023
Merged

feat: add Zeabur deployment #1942

merged 4 commits into from
Nov 30, 2023

Conversation

yuaanlin
Copy link
Contributor

❓ Type of change

  • πŸ“– Documentation (updates to the documentation, readme, or JSdoc annotations)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • πŸ‘Œ Enhancement (improving an existing functionality like performance)
  • ✨ 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

Added documentation and preset for Zeabur.

πŸ“ Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

Copy link
Contributor

nuxt-studio bot commented Nov 22, 2023

βœ… Live Preview ready!

Name Edit Preview Latest Commit
nitro Edit on Studio β†—οΈŽ View Live Preview f8fd8af

Copy link

@pan93412 pan93412 left a comment

Choose a reason for hiding this comment

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

LGTM! Any demo site of this?

@yuaanlin
Copy link
Contributor Author

LGTM! Any demo site of this?

Sure, here is a Nuxt.js app deployed on Zeabur: https://nuxtjs.zeabur.app/ (source: https://github.com/zeabur/nuxtjs-template).

And the zeabur preset in this PR is already tested:

❯ NITRO_PRESET=zeabur pnpm nitro build examples/hello-world/

> [email protected] nitro /Users/yuanlin/Developer/nitro
> NODE_OPTIONS="--enable-source-maps" jiti ./src/cli/index.ts "build" "examples/hello-world/"

βœ” Generated public examples/hello-world/.zeabur/output/static                                                                                         nitro 2:32:11 PM
β„Ή Building Nitro Server (preset: zeabur)                                                                                                              nitro 2:32:11 PM
βœ” Nitro server built                                                                                                                                  nitro 2:32:11 PM
  β”œβ”€ examples/hello-world/.zeabur/output/functions/__nitro.func/chunks/index.mjs (267 B) (191 B gzip)
  β”œβ”€ examples/hello-world/.zeabur/output/functions/__nitro.func/chunks/index.mjs.map (170 B) (136 B gzip)
  β”œβ”€ examples/hello-world/.zeabur/output/functions/__nitro.func/chunks/nitro/zeabur.mjs (140 kB) (33.9 kB gzip)
  β”œβ”€ examples/hello-world/.zeabur/output/functions/__nitro.func/chunks/nitro/zeabur.mjs.map (3.7 kB) (751 B gzip)
  β”œβ”€ examples/hello-world/.zeabur/output/functions/__nitro.func/index.mjs (224 B) (174 B gzip)
  └─ examples/hello-world/.zeabur/output/functions/__nitro.func/package.json (113 B) (108 B gzip)
Ξ£ Total size: 145 kB (35.2 kB gzip)
Screenshot 2023-11-22 at 2 41 01β€―PM
nitro on ξ‚  main [!] is πŸ“¦ v2.8.0 via  v20.8.0 on ☁️  (ap-northeast-1) 
❯ NITRO_PRESET=zeabur pnpm nitro build examples/api-routes/

> [email protected] nitro /Users/yuanlin/Developer/nitro
> NODE_OPTIONS="--enable-source-maps" jiti ./src/cli/index.ts "build" "examples/api-routes/"

βœ” Generated public examples/api-routes/.zeabur/output/static                                                                                          nitro 2:33:00 PM
β„Ή Building Nitro Server (preset: zeabur)                                                                                                              nitro 2:33:00 PM
βœ” Nitro server built                                                                                                                                  nitro 2:33:00 PM
  β”œβ”€ examples/api-routes/.zeabur/output/functions/__nitro.func/chunks/_..._.mjs (433 B) (257 B gzip)
  β”œβ”€ examples/api-routes/.zeabur/output/functions/__nitro.func/chunks/_..._.mjs.map (234 B) (152 B gzip)
  β”œβ”€ examples/api-routes/.zeabur/output/functions/__nitro.func/chunks/_name_.mjs (288 B) (200 B gzip)
  β”œβ”€ examples/api-routes/.zeabur/output/functions/__nitro.func/chunks/_name_.mjs.map (249 B) (163 B gzip)
  β”œβ”€ examples/api-routes/.zeabur/output/functions/__nitro.func/chunks/hello.mjs (258 B) (185 B gzip)
  β”œβ”€ examples/api-routes/.zeabur/output/functions/__nitro.func/chunks/hello.mjs.map (167 B) (132 B gzip)
  β”œβ”€ examples/api-routes/.zeabur/output/functions/__nitro.func/chunks/nitro/zeabur.mjs (141 kB) (34 kB gzip)
  β”œβ”€ examples/api-routes/.zeabur/output/functions/__nitro.func/chunks/nitro/zeabur.mjs.map (3.7 kB) (751 B gzip)
  β”œβ”€ examples/api-routes/.zeabur/output/functions/__nitro.func/chunks/test.get.mjs (266 B) (185 B gzip)
  β”œβ”€ examples/api-routes/.zeabur/output/functions/__nitro.func/chunks/test.get.mjs.map (174 B) (133 B gzip)
  β”œβ”€ examples/api-routes/.zeabur/output/functions/__nitro.func/chunks/test.post.mjs (270 B) (187 B gzip)
  β”œβ”€ examples/api-routes/.zeabur/output/functions/__nitro.func/chunks/test.post.mjs.map (176 B) (133 B gzip)
  β”œβ”€ examples/api-routes/.zeabur/output/functions/__nitro.func/index.mjs (224 B) (174 B gzip)
  └─ examples/api-routes/.zeabur/output/functions/__nitro.func/package.json (113 B) (108 B gzip)
Ξ£ Total size: 147 kB (36.7 kB gzip)
Screenshot 2023-11-22 at 2 39 40β€―PM

@pi0 pi0 added this to the 2.9 milestone Nov 28, 2023
Copy link
Member

@pi0 pi0 left a comment

Choose a reason for hiding this comment

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

Let's try on nightly!

@pi0 pi0 merged commit 081aa27 into unjs:main Nov 30, 2023
4 checks passed
@pi0 pi0 mentioned this pull request Feb 27, 2024
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.

None yet

3 participants