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

Nuxt, baseURL, and SSG fixes #5716

Merged
merged 20 commits into from
May 22, 2023
Merged

Nuxt, baseURL, and SSG fixes #5716

merged 20 commits into from
May 22, 2023

Conversation

jamesdaniels
Copy link
Member

@jamesdaniels jamesdaniels commented Apr 20, 2023

  • Handle Nuxt bundled dependencies
  • Add fast dev-mode to Nuxt 2
  • Handle ssr true/false in a more conventional way
  • Call generate when targeting ssr: false
  • Import all the integrations, rather than dynamically require
  • Leave it to the framework to build an SPA
  • Handle Nuxt3 baseURL
  • SPAs for Nuxt3 and Angular now respect baseUrl
  • If the Nuxt version couldn't be determined, assume Nuxt3
  • Nuxt used process.cwd in a couple places, guard against this
  • Fix serveOptimizedImages + SPA

@jamesdaniels jamesdaniels marked this pull request as ready for review April 26, 2023 15:36
@@ -107,7 +109,7 @@ const SupportLevelWarnings = {
),
};

export const FIREBASE_FRAMEWORKS_VERSION = "^0.7.0";
export const FIREBASE_FRAMEWORKS_VERSION = "0.6.1-canary.35a57cb";
Copy link
Member Author

Choose a reason for hiding this comment

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

This is in ^0.8.0 now

Copy link

Choose a reason for hiding this comment

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

Are we able to test this with experiments enabled on the Firebase CLI?

Copy link
Member Author

Choose a reason for hiding this comment

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

Once merged and cut, yes. If you'd like to help verify the changes in this branch, you can install it manually via npm i -g github:firebase/firebase-tools#jamesdaniels_nuxtFixes

Copy link
Member

@leoortizz leoortizz left a comment

Choose a reason for hiding this comment

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

LGTM! Left a couple nits. Tried dev mode and deployments, all working fine.

src/frameworks/nuxt2/index.ts Outdated Show resolved Hide resolved
src/frameworks/nuxt2/index.ts Outdated Show resolved Hide resolved
jamesdaniels and others added 6 commits May 19, 2023 15:47
Co-authored-by: Leonardo Ortiz <leo@monogram.io>
Co-authored-by: Leonardo Ortiz <leo@monogram.io>
@jamesdaniels
Copy link
Member Author

Going to clean up my use of ! in a couple spots, manually test the baseUrl w/SPA changes.

@codecov-commenter
Copy link

codecov-commenter commented May 22, 2023

Codecov Report

Patch coverage: 27.83% and project coverage change: +0.34 🎉

Comparison is base (f21c068) 55.10% compared to head (48ecfac) 55.44%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5716      +/-   ##
==========================================
+ Coverage   55.10%   55.44%   +0.34%     
==========================================
  Files         333      333              
  Lines       22892    23194     +302     
  Branches     4684     4787     +103     
==========================================
+ Hits        12614    12861     +247     
- Misses       9150     9213      +63     
+ Partials     1128     1120       -8     
Impacted Files Coverage Δ
src/frameworks/angular/utils.ts 3.97% <ø> (ø)
src/frameworks/express/index.ts 19.69% <0.00%> (ø)
src/frameworks/index.ts 11.48% <0.00%> (-0.09%) ⬇️
src/frameworks/utils.ts 42.85% <0.00%> (-0.42%) ⬇️
src/frameworks/vite/index.ts 29.50% <0.00%> (-0.50%) ⬇️
src/frameworks/angular/index.ts 25.00% <11.11%> (-1.20%) ⬇️
src/frameworks/nuxt/index.ts 55.93% <30.76%> (-5.61%) ⬇️
src/frameworks/nuxt2/index.ts 40.35% <36.73%> (+11.50%) ⬆️

... and 3 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@jamesdaniels jamesdaniels changed the title Nuxt fixes Nuxt, baseURL, and SSG fixes May 22, 2023
@jamesdaniels jamesdaniels enabled auto-merge (squash) May 22, 2023 21:37
@jamesdaniels jamesdaniels merged commit bea955f into master May 22, 2023
32 checks passed
@jamesdaniels jamesdaniels deleted the jamesdaniels_nuxtFixes branch May 22, 2023 21:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants