Giter Club home page Giter Club logo

Comments (6)

JamesMGreene avatar JamesMGreene commented on June 19, 2024 2

A fix for this is now included in actions/configure-pages@v5. ๐Ÿš€

e.g.

- name: Setup Pages
  uses: actions/configure-pages@v5
  with:
    static_site_generator: next

from configure-pages.

pratv1 avatar pratv1 commented on June 19, 2024 1

@OtmaniCodes I ended up commenting out this line from the build step to make it work:

image

You can check my workflow file for reference.

from configure-pages.

OtmaniCodes avatar OtmaniCodes commented on June 19, 2024 1

@OtmaniCodes I ended up commenting out this line from the build step to make it work:

image

You can check my workflow file for reference.

Thank you

from configure-pages.

JamesMGreene avatar JamesMGreene commented on June 19, 2024 1

The available workaround is to provide the path in your Actions workflow via the generator_config_file input parameter, e.g.:

- name: Setup Pages
  uses: actions/configure-pages@v4
  with:
    static_site_generator: next
    generator_config_file: ./next.config.mjs

For now, I'll leave this issue open to look at auto-detecting alternative file paths. It's not something we'd prioritize highly, but it isn't an unreasonable expectation given the behind-the-scenes magic this action is already attempting to take care of on users' behalf. ๐Ÿคท

from configure-pages.

2chanhaeng avatar 2chanhaeng commented on June 19, 2024

I had a similar problem to yours for a similar reason.
Recently, when I create a project with create-next-app, it generates next.config.mjs instead of next.config.js.
So I think this issue could be going bigger and should be fixed sooner rather than later.
Additionally, I temporarily fixed the issue by deleting next.config.js just before the build like following:

      - name: Build with Next.js
        run: |
          rm -f next.config.js
          ${{ steps.detect-package-manager.outputs.runner }} next build

from configure-pages.

OtmaniCodes avatar OtmaniCodes commented on June 19, 2024

is a solution found to this issue?

from configure-pages.

Related Issues (20)

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.