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(content): Offline mode #429

Merged
merged 7 commits into from
Aug 31, 2020
Merged

fix(content): Offline mode #429

merged 7 commits into from
Aug 31, 2020

Conversation

Barbapapazes
Copy link
Contributor

@Barbapapazes Barbapapazes commented Aug 27, 2020

Fix issue when using app in SPA mode. The DB wasn't call correctly (using a Date.now() which makes unusable offline mode)

Types of changes

  • Bug fix (a non-breaking change which fixes an issue)
  • New feature (a non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Description

It resolve #229 ! Using a env in the runtimeConfig and passing it to the static plugin, the value is the same during the app is alive but change when there is a new build !

Maybe I can use a key generation but don't kwon how !

Checklist:

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes (if not applicable, please state why)

@Barbapapazes Barbapapazes changed the title fix issue "Content And Offline mode #229" fix(issue): fix "Content And Offline mode #229" Aug 28, 2020
@benjamincanac benjamincanac changed the title fix(issue): fix "Content And Offline mode #229" fix(content): Offline mode Aug 28, 2020
@benjamincanac
Copy link
Member

@Barbapapazes Really nice PR! Just need to fix the tests and it will be good to go 🙂

@Barbapapazes
Copy link
Contributor Author

Barbapapazes commented Aug 28, 2020

Tests are ok !

@benjamincanac benjamincanac requested a review from atinux August 28, 2020 09:50
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.

Nice improvement!

packages/content/lib/index.js Show resolved Hide resolved
packages/content/lib/index.js Outdated Show resolved Hide resolved
Copy link
Member

@atinux atinux left a comment

Choose a reason for hiding this comment

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

Awesome work 🔥

@benjamincanac benjamincanac merged commit 277da7d into nuxt:dev Aug 31, 2020
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.

Content And Offline mode
4 participants