Git Product home page Git Product logo

netlify-cache-nextjs's Introduction

J

Hi, I'm Jonah

Hi, I'm Jonah. I'm a backend developer with extensive experience in the Node.js & TypeScript ecosystem.

Previously, I worked at Voiceflow on the platform team.

I also do a lot of open source full-stack work which you can view here on my GitHub.

Visit my website to view my résumé or view my contact information.

netlify-cache-nextjs's People

Contributors

dependabot-preview[bot] avatar dependabot[bot] avatar ehmicky avatar jonahsnider avatar oliviertassinari avatar renovate[bot] avatar rstavchansky avatar verythorough avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

netlify-cache-nextjs's Issues

No cache found

We are currently getting this issue under the same circumstances -- we have the package included in our netlify.toml and that is all we have done. We are using next-on-netlify to enable serverless functions if that is relevant. Is there any further discovery as to what resolved this?


I did not previously have the plugin installed in Netlify itself, just declared in our repo -- is this necessary? this was not clear from the docs.

However, I am still receiving the message.


and one last thing -- similarly, locally it appears to work (on second build)

$ netlify build --context=deploy-preview
...
┌────────────────────────────────────────────────────────┐
│ 1. onPreBuild command from netlify-plugin-cache-nextjs │
└────────────────────────────────────────────────────────┘

.next/cache exists on disk
Restored the cached .next folder at the location `.next/cache`

(netlify-plugin-cache-nextjs onPreBuild completed in 323ms)

Originally posted by @pmourer in #80 (comment)

Dependency Dashboard

This issue provides visibility into Renovate updates and their statuses. Learn more

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.


  • Check this box to trigger a request for Renovate to run again on this repository

Publish a npm package

Amazing package!

Would it be possible to publish it to npm? This Netlify Build plugin would be very useful to lots of people.

The official documentation includes few recommendation on naming and tagging to make sure your plugin will be easy to find.

v1.5.1 missing manifest.yml !

┌─────────────────────────────────────────────────────┐
│ Plugin "netlify-plugin-cache-nextjs" internal error
└─────────────────────────────────────────────────────┘

  Error message
  Error: This plugin is missing a "manifest.yml".
  Please see the documentation at https://github.com/netlify/build#anatomy-of-a-plugin

  Plugin details
  Package:        netlify-plugin-cache-nextjs
  Version:        1.5.1
  Repository:     git+https://github.com/pizzafox/netlify-cache-nextjs.git
  npm link:       https://www.npmjs.com/package/netlify-plugin-cache-nextjs
  Report issues:  https://github.com/pizzafox/netlify-cache-nextjs/issues

  Error location
  While loading "netlify-plugin-cache-nextjs" from netlify.toml and package.json
      at async Promise.all (index 3)

Error: Invalid event 'default'.

Howdy,

Thanks for the quick turnaround for the previous issue!

Getting the following error on newly released 1.0.2. Any ideas?

9:56:13 AM: ❯ Loading plugins
9:56:13 AM: ​
9:56:13 AM: ┌─────────────────────────────┐
9:56:13 AM: │        Build failed         │
9:56:13 AM: └─────────────────────────────┘
9:56:13 AM: ​
9:56:13 AM: ❯ Error message
9:56:13 AM:   Error: Invalid event 'default'.
9:56:13 AM:   Please use a valid event name. One of:
9:56:13 AM:    - onInit
9:56:13 AM:    - onPreBuild
9:56:13 AM:    - onBuild
9:56:13 AM:    - onPostBuild
9:56:13 AM:    - onSuccess
9:56:13 AM:    - onError
9:56:13 AM:    - onEnd​
9:56:13 AM: ​
9:56:13 AM: ❯ Plugin details
9:56:13 AM:   ID:             netlify-plugin-cache-nextjs
9:56:13 AM:   Version:        1.0.2
9:56:13 AM:   Repository:     git+https://github.com/pizzafox/netlify-cache-nextjs.git
9:56:13 AM:   npm link:       https://www.npmjs.com/package/netlify-plugin-cache-nextjs
9:56:13 AM:   Report issues:  https://github.com/pizzafox/netlify-cache-nextjs/issues​
9:56:13 AM: ​
9:56:13 AM: ❯ Error location
9:56:13 AM:   While loading npm package "netlify-plugin-cache-nextjs"
9:56:13 AM: ​

.next/cache not found from one "Deploy Site" to the next

Using the web GUI installation of the plugin on a Netlify Site....
Should the "Deploy Site" under the Retry Deploy take advantage of the .next/cache?
Obviously the "Clear cache and deploy site" would remove any caching.

My logs are indicating that the .next/cache is saved every time by the plugin, but then never found on the next deploy.

Attached is a log to check out, our Netlify log is not public.
netlify.log

Warning: No build cache found

Hello and thanks again for prompt fixes! Looks like we are getting close.

I see this sequence in the logs and the build cache doesn't appear to be active. Ran multiple builds, Next.js shows the warning with "no build cache found".

8:58:42 PM:  ✔  netlify-plugin-cache-nextjs onPreBuild completed in 8ms
..
8:59:02 PM: Warning: No build cache found. Please configure build caching for faster rebuilds. Read more: https://err.sh/next.js/no-cache
...
8:59:02 PM: ┌─────────────────────────────────────────────────────────────────┐
8:59:02 PM: │ 3. Running onPostBuild command from netlify-plugin-cache-nextjs │
8:59:02 PM: └─────────────────────────────────────────────────────────────────┘
8:59:02 PM: ​
8:59:02 PM: ​
8:59:02 PM:  ✔  netlify-plugin-cache-nextjs onPostBuild completed in 4ms
8:59:02 PM: ​
8:59:02 PM: ┌─────────────────────────────┐
8:59:02 PM: │   Netlify Build Complete    │
8:59:02 PM: └─────────────────────────────┘
8:59:02 PM: ​
8:59:02 PM:  ✔  Netlify Build completed in 21847ms

Complete build log.
Still trying on this repo.

Do you happen to have a test repo you tested this with, so I can take a look and compare the code?
Otherwise, any ideas how to troubleshoot? Happy to help, just don't know where to even look.

Seeing "No build cache found" warnings after plugin was enabled

Hello,

Super eager to get this working, thanks making this plugin available!

Following the docs, added the plugin to the netlify.toml file, triggered two builds to ensure the .next artifacts got cached but still seeing this warning in the build logs:

1:31:52 PM: Warning: No build cache found. Please configure build caching for faster rebuilds. Read more: https://err.sh/next.js/no-cache
  • Is the module dependent on a particular version of Next.js?
  • Do I need to sign up for Netlify Build Plugins to enable it on my account?

My sandbox repo with vanilla next.js.

Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.